From: Jérémie Astor Date: Wed, 16 Sep 2020 21:46:44 +0000 (+0200) Subject: :art: Access before storage modifier X-Git-Tag: nightly~1280 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=522ef792a3c377f40bba7b60ade385bd3c81f8fd;p=gwion.git :art: Access before storage modifier --- diff --git a/ast b/ast index 6d0584e7..04876e5a 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 6d0584e789c5dbee8f2fc9b8fa95781d271c738c +Subproject commit 04876e5a68a4547238939b32e245f40b66fce14a diff --git a/tests/error/named_union_global_private_static.gw b/tests/error/named_union_global_private_static.gw index 7f8c6c30..3c59beeb 100644 --- a/tests/error/named_union_global_private_static.gw +++ b/tests/error/named_union_global_private_static.gw @@ -1,2 +1,2 @@ #! [contains] can only be used at class scope. -union static private { int i; } u; +union private static { int i; } u; diff --git a/tests/error/union.gw b/tests/error/union.gw index 0e4bd71e..7467b932 100644 --- a/tests/error/union.gw +++ b/tests/error/union.gw @@ -1,5 +1,4 @@ #! [contains] -union -{ +union { one; two; }; diff --git a/tests/error/union_global_private_static.gw b/tests/error/union_global_private_static.gw index d1661269..c9f8e009 100644 --- a/tests/error/union_global_private_static.gw +++ b/tests/error/union_global_private_static.gw @@ -1,2 +1,2 @@ #! [contains] can only be used at class scope. -union static private { int i; }; +union private static { int i; }; diff --git a/tests/tree/named_union_private_static.gw b/tests/tree/named_union_private_static.gw index 3ac3f7ec..1e598323 100644 --- a/tests/tree/named_union_private_static.gw +++ b/tests/tree/named_union_private_static.gw @@ -1,5 +1,5 @@ class C { - union static private { + union private static { int i; } u; <<< this, " ", u, " ", this.u.i >>>;