Mark only included files as potentially unused (#442)

* Mark only included files as potentially unused

* Update CHANGELOG

* Add test
This commit is contained in:
Gaith Hallak
2023-03-21 13:55:18 +03:00
committed by GitHub
parent 311bf49505
commit 99bb3fe1fb
4 changed files with 15 additions and 3 deletions
+1
View File
@@ -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} ] ++
[].
@@ -0,0 +1,5 @@
namespace N =
function nconst() = 1
main contract C =
entrypoint f() = N.nconst()