diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index 1c724a5..e070fd7 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -1182,6 +1182,16 @@ failing_contracts() -> , ?TYPE_ERROR(using_contract_as_namespace, [<>]) + , ?TYPE_ERROR(hole_expression, + [<>, + <>, + < int`">>, + <> + ]) ]. validation_test_() -> diff --git a/test/contracts/hole_expression.aes b/test/contracts/hole_expression.aes new file mode 100644 index 0000000..d1e26d1 --- /dev/null +++ b/test/contracts/hole_expression.aes @@ -0,0 +1,13 @@ +include "List.aes" + +contract C = + entrypoint f() = + let ??? = true + let v = ??? + let q = v == "str" + let xs = [1, 2, 3, 4] + switch (List.first(List.map(???, xs))) + Some(x) => x + 1 + None => 0 + + function g() = ??? \ No newline at end of file