From e756f935f2f25b80305faabf277d40445abbf3ee Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Sun, 18 Dec 2022 22:43:04 +0300 Subject: [PATCH] Add test for the unused const warning --- test/aeso_compiler_tests.erl | 8 ++++++-- test/contracts/warnings.aes | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index 53913fb..74bc2e8 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -289,7 +289,9 @@ warnings() -> <>, <> + "The definition of `const` shadows an older definition at line 70, column 3.">>, + <> ]). failing_contracts() -> @@ -860,7 +862,9 @@ failing_contracts() -> <>, <> + "The definition of `const` shadows an older definition at line 70, column 3.">>, + <> ]) , ?TYPE_ERROR(polymorphism_contract_interface_recursive, [<