Added fail test
This commit is contained in:
parent
bff1acae69
commit
672ffd6ce1
@ -356,4 +356,7 @@ failing_contracts() ->
|
||||
<<"Use 'entrypoint' for declaration of foo (at line 6, column 3):\n entrypoint foo : () => unit">>,
|
||||
<<"Use 'entrypoint' instead of 'function' for public function foo (at line 10, column 3):\n entrypoint foo() = ()">>,
|
||||
<<"Use 'entrypoint' instead of 'function' for public function foo (at line 6, column 3):\n entrypoint foo : () => unit">>]}
|
||||
, {"list_comp_fail",
|
||||
[<<"Cannot unify int\n and list('a)\nwhen checking rvalue of list comprehension binding at line 2, column 36\n 1 : int\nagainst type \n list('a)">>
|
||||
]}
|
||||
].
|
||||
|
2
test/contracts/list_comp_fail.aes
Normal file
2
test/contracts/list_comp_fail.aes
Normal file
@ -0,0 +1,2 @@
|
||||
contract ListCompBad =
|
||||
entrypoint failing() = [x | x <- 1]
|
Loading…
x
Reference in New Issue
Block a user