]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Resolve symbols in named arguments
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 9 Sep 2014 18:31:10 +0000 (20:31 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 9 Sep 2014 18:31:12 +0000 (20:31 +0200)
Fixes bug 736235

.gitignore
tests/Makefile.am
tests/methods/bug736235.vala [new file with mode: 0644]
vala/valasymbolresolver.vala

index 9373d2156d196d09fd20c9b239e07388aa715ce6..f0a22900255a531ae20afc62a702c9aefecde105 100644 (file)
@@ -38,3 +38,5 @@ lcov.info
 
 build-aux/test-driver
 
+tests/_test
+
index 07c98772d2279a3ad142dd81737dc4844292a78b..85ca6b351ab6c81acfc11701a132b372cb76497a 100644 (file)
@@ -62,6 +62,7 @@ TESTS = \
        methods/bug723009.vala \
        methods/bug723195.vala \
        methods/bug726347.vala \
+       methods/bug736235.vala \
        methods/generics.vala \
        control-flow/break.vala \
        control-flow/expressions-conditional.vala \
diff --git a/tests/methods/bug736235.vala b/tests/methods/bug736235.vala
new file mode 100644 (file)
index 0000000..bdbeb9b
--- /dev/null
@@ -0,0 +1,10 @@
+public class Foo : GLib.Object {
+  public string? bar { get; construct; }
+
+  public Foo () {
+    GLib.Object (bar: (string?) null);
+  }
+}
+
+void main () {
+}
\ No newline at end of file
index 94858e33b37c6dc7d23411b2ac62c36916b6861a..32c84e4c3b8a65e6714fe4236e9e17646d6873f5 100644 (file)
@@ -511,6 +511,10 @@ public class Vala.SymbolResolver : CodeVisitor {
                expr.accept_children (this);
        }
 
+       public override void visit_named_argument (NamedArgument expr) {
+               expr.accept_children (this);
+       }
+
        public override void visit_addressof_expression (AddressofExpression expr) {
                expr.accept_children (this);
        }