From 28b26ea4cc1ef8077a2d729d4a1756ad697c2ab0 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Fri, 16 Dec 2022 18:32:35 +0300 Subject: [PATCH] Add test for warning on const shadowing --- test/aeso_compiler_tests.erl | 8 ++++++-- test/contracts/warnings.aes | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index fdb878e..ceb8048 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -287,7 +287,9 @@ warnings() -> <>, <> + "The function `dec` is defined but never used.">>, + <> ]). failing_contracts() -> @@ -856,7 +858,9 @@ failing_contracts() -> <>, <> + "The function `dec` is defined but never used.">>, + <> ]) , ?TYPE_ERROR(polymorphism_contract_interface_recursive, [<