]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update 159/head
authorfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 4 Nov 2019 16:50:44 +0000 (17:50 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 4 Nov 2019 16:50:44 +0000 (17:50 +0100)
tests/error/cant_find_in_nspc.gw
tests/tree/find_in_nspc.gw [new file with mode: 0644]
tests/tree/find_type.gw [new file with mode: 0644]

index 0513e7b3ab05b45ac23552558e0212fee94938c2..31e9c033e1dd2cc8c4039325ed7d0a0a8e9db761 100644 (file)
@@ -12,3 +12,5 @@ class E extends C {
 class F {
   F->D d;
 }
+
+F f;
diff --git a/tests/tree/find_in_nspc.gw b/tests/tree/find_in_nspc.gw
new file mode 100644 (file)
index 0000000..1410915
--- /dev/null
@@ -0,0 +1,13 @@
+class C {
+  class D {
+    int i;
+  }
+}
+
+class E extends C {
+  C->D d;
+}
+
+class F {
+  E->D d;
+}
diff --git a/tests/tree/find_type.gw b/tests/tree/find_type.gw
new file mode 100644 (file)
index 0000000..1fcc611
--- /dev/null
@@ -0,0 +1,10 @@
+class C {
+  class D{
+  }
+}
+
+class E extends C {
+  D d;
+}
+E e;
+<<< e.d >>>;