Properly handle type errors during desugar

This commit is contained in:
Hans Svensson
2021-01-25 21:24:08 +01:00
parent f1d95484a5
commit 22aaeceba8
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -713,6 +713,9 @@ failing_contracts() ->
" g : (int, string) => 'c\nto arguments\n"
" \"Litwo, ojczyzno moja\" : string">>
])
, ?TYPE_ERROR(bad_state,
[<<?Pos(4, 16)
"Conflicting updates for field 'foo'">>])
].
-define(Path(File), "code_errors/" ??File).
+5
View File
@@ -0,0 +1,5 @@
contract C =
record state = { foo : int }
entrypoint init(i : int) =
state{ foo = i,
foo = 42 }