summaryrefslogtreecommitdiff
path: root/vala/valainvalidtype.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-12-24 20:37:32 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-12-24 20:37:32 +0000
commit25ae8db899ef5e3dfa430c2486a1c137c3db5a94 (patch)
treed654d520effd6d790bb1cd8eee324c8735a5a3b5 /vala/valainvalidtype.vala
parent8c65e35bbfb1ca7b34e6126244c0a7b01e4f924a (diff)
downloadvala-25ae8db899ef5e3dfa430c2486a1c137c3db5a94.tar.gz
add InvalidType class
2007-12-24 Juerg Billeter <j@bitron.ch> * vala/Makefile.am, vala/valainvalidtype.vala, vala/valasemanticanalyzer.vala, gobject/valaccodegeneratormethod.vala: add InvalidType class svn path=/trunk/; revision=790
Diffstat (limited to 'vala/valainvalidtype.vala')
-rw-r--r--vala/valainvalidtype.vala32
1 files changed, 32 insertions, 0 deletions
diff --git a/vala/valainvalidtype.vala b/vala/valainvalidtype.vala
new file mode 100644
index 000000000..07916776b
--- /dev/null
+++ b/vala/valainvalidtype.vala
@@ -0,0 +1,32 @@
+/* valainvalidtype.vala
+ *
+ * Copyright (C) 2007 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>
+ */
+
+using GLib;
+
+/**
+ * An invalid reference to a data type.
+ */
+public class Vala.InvalidType : DataType {
+ public InvalidType () {
+ error = true;
+ }
+}