summaryrefslogtreecommitdiff
path: root/ccode/valaccodeinvalidexpression.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-08-16 16:56:39 +0200
committerJürg Billeter <j@bitron.ch>2009-08-16 16:56:39 +0200
commit380b0786f633baa40b877f079317ab070b6402fb (patch)
tree38b407dc6083b4e0da58c083c8934b5a8379678d /ccode/valaccodeinvalidexpression.vala
parentbd0868bc405e2b12b7c4c6977e968750eafdf217 (diff)
downloadvala-380b0786f633baa40b877f079317ab070b6402fb.tar.gz
Report error on unsupported type check expressions
Fixes bug 585344.
Diffstat (limited to 'ccode/valaccodeinvalidexpression.vala')
-rw-r--r--ccode/valaccodeinvalidexpression.vala33
1 files changed, 33 insertions, 0 deletions
diff --git a/ccode/valaccodeinvalidexpression.vala b/ccode/valaccodeinvalidexpression.vala
new file mode 100644
index 000000000..cf01e31b3
--- /dev/null
+++ b/ccode/valaccodeinvalidexpression.vala
@@ -0,0 +1,33 @@
+/* valaccodeinvalidexpression.vala
+ *
+ * Copyright (C) 2009 Jürg Billeter
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Jürg Billeter <j@bitron.ch>
+ */
+
+/**
+ * Represents an invalid expression.
+ */
+public class Vala.CCodeInvalidExpression : CCodeExpression {
+ public CCodeInvalidExpression () {
+ }
+
+ public override void write (CCodeWriter writer) {
+ assert_not_reached ();
+ }
+}