]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Report error when trying to use signals as expressions
authorJürg Billeter <j@bitron.ch>
Mon, 6 Apr 2009 16:21:47 +0000 (18:21 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 6 Apr 2009 16:21:47 +0000 (18:21 +0200)
Fixes bug 437431.

vala/valasignaltype.vala

index 3157a64b27106f7243360e0e9a9af99d2c384996..e93440342754c348a93321c80b46a4c95a1ac4df 100644 (file)
@@ -1,6 +1,6 @@
 /* valasignaltype.vala
  *
- * Copyright (C) 2007-2008  Jürg Billeter
+ * Copyright (C) 2007-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
@@ -48,4 +48,12 @@ public class Vala.SignalType : DataType {
        public override DataType copy () {
                return new SignalType (signal_symbol);
        }
+
+       public override bool compatible (DataType target_type) {
+               return false;
+       }
+
+       public override string to_qualified_string (Scope? scope) {
+               return signal_symbol.get_full_name ();
+       }
 }