ligo/src/test/contracts/subtle_nontail_fail.mligo
Lesenechal Remi e2776e9849 New checks in the self_ast_typed pass:
* Ast_typed stage is now aware of the main function name
* main function type is checked against expected contract types
* Tezos.self (returning contract type) is checked against main function type
* In general, Ast_typed.compile signature has been changed to enable/disable contract-related checks
2020-03-09 11:23:08 +01:00

5 lines
212 B
Plaintext

let main (ps : unit * unit) : operation list * unit =
if true
then (failwith "This contract always fails" : operation list * unit)
else (failwith "This contract still always fails" : operation list * unit)