Do not show warning for types used in records

This commit is contained in:
Gaith Hallak
2023-11-27 11:35:15 +03:00
parent 03d6dd6ca2
commit a037466f2d
3 changed files with 8 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