From ba44d6e629444e214cda0acd9ca11c69586f0a8a Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 4 Nov 2019 17:50:44 +0100 Subject: [PATCH] :art: Update --- tests/error/cant_find_in_nspc.gw | 2 ++ tests/tree/find_in_nspc.gw | 13 +++++++++++++ tests/tree/find_type.gw | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/tree/find_in_nspc.gw create mode 100644 tests/tree/find_type.gw diff --git a/tests/error/cant_find_in_nspc.gw b/tests/error/cant_find_in_nspc.gw index 0513e7b3..31e9c033 100644 --- a/tests/error/cant_find_in_nspc.gw +++ b/tests/error/cant_find_in_nspc.gw @@ -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 index 00000000..14109151 --- /dev/null +++ b/tests/tree/find_in_nspc.gw @@ -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 index 00000000..1fcc611e --- /dev/null +++ b/tests/tree/find_type.gw @@ -0,0 +1,10 @@ +class C { + class D{ + } +} + +class E extends C { + D d; +} +E e; +<<< e.d >>>; -- 2.43.0