diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index e070fd7..9eb002d 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -69,6 +69,7 @@ simple_compile_test_() -> [ {"Testing warning messages", fun() -> #{ warnings := Warnings } = compile("warnings", [warn_all]), + #{ warnings := [] } = compile("warning_unused_include_no_include", [warn_all]), check_warnings(warnings(), Warnings) end} ] ++ []. diff --git a/test/contracts/warning_unused_include_no_include.aes b/test/contracts/warning_unused_include_no_include.aes new file mode 100644 index 0000000..edf2fd2 --- /dev/null +++ b/test/contracts/warning_unused_include_no_include.aes @@ -0,0 +1,5 @@ +namespace N = + function nconst() = 1 + +main contract C = + entrypoint f() = N.nconst()