diff options
author | Jürg Billeter <j@bitron.ch> | 2009-08-16 16:56:39 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-08-16 16:56:39 +0200 |
commit | 380b0786f633baa40b877f079317ab070b6402fb (patch) | |
tree | 38b407dc6083b4e0da58c083c8934b5a8379678d /ccode | |
parent | bd0868bc405e2b12b7c4c6977e968750eafdf217 (diff) | |
download | vala-380b0786f633baa40b877f079317ab070b6402fb.tar.gz |
Report error on unsupported type check expressions
Fixes bug 585344.
Diffstat (limited to 'ccode')
-rw-r--r-- | ccode/Makefile.am | 1 | ||||
-rw-r--r-- | ccode/valaccodeinvalidexpression.vala | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ccode/Makefile.am b/ccode/Makefile.am index d70c56897..af79c1f96 100644 --- a/ccode/Makefile.am +++ b/ccode/Makefile.am @@ -42,6 +42,7 @@ libvalaccode_la_VALASOURCES = \ valaccodeifstatement.vala \ valaccodeincludedirective.vala \ valaccodeinitializerlist.vala \ + valaccodeinvalidexpression.vala \ valaccodelabel.vala \ valaccodelinedirective.vala \ valaccodemacroreplacement.vala \ 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 (); + } +} |