From c3e078bba131bdd041b16e48cf4820d7391d34f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 22:55:23 +0200 Subject: [PATCH] :art: Change enum name place --- ast | 2 +- tests/error/enum_declared.gw | 4 ++-- tests/tree/named_enum.gw | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 tests/tree/named_enum.gw diff --git a/ast b/ast index b631a0ec..9d0aeac5 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit b631a0ecbc6687ff9b38ad417f0f250f68fdb17f +Subproject commit 9d0aeac53100a9d62a368cd7ed418c5f21487e16 diff --git a/tests/error/enum_declared.gw b/tests/error/enum_declared.gw index 9cb712f9..45251c5b 100644 --- a/tests/error/enum_declared.gw +++ b/tests/error/enum_declared.gw @@ -1,6 +1,6 @@ #! [contains] already been defined int i; -enum +enum i { test -} i; +} diff --git a/tests/tree/named_enum.gw b/tests/tree/named_enum.gw new file mode 100644 index 00000000..fae589fa --- /dev/null +++ b/tests/tree/named_enum.gw @@ -0,0 +1,3 @@ +enum MyEnum { + a,b,c +} -- 2.43.0