Disable unused type warnings for type used inside of records (#492)

* Do not show warning for types used in records

* Exclude .vscode in .gitignore

* Update CHANGELOG.md
This commit is contained in:
Gaith Hallak
2023-11-27 12:12:24 +03:00
committed by GitHub
parent 03d6dd6ca2
commit cdbd430f23
5 changed files with 10 additions and 2 deletions
+1
View File
@@ -70,6 +70,7 @@ simple_compile_test_() ->
fun() ->
#{ warnings := Warnings } = compile("warnings", [warn_all]),
#{ warnings := [] } = compile("warning_unused_include_no_include", [warn_all]),
#{ warnings := [] } = compile("warning_used_record_typedef", [warn_all]),
check_warnings(warnings(), Warnings)
end} ] ++
[].
@@ -0,0 +1,5 @@
contract Test =
type option_int = option(int)
record option_point = {x: int, y: option_int}
entrypoint test_option_record(a: option_point) = a