sophia/test/contracts/polymorphism_variance_switching_chain_create_fail.aes
2022-08-03 20:11:23 +04:00

12 lines
313 B
Plaintext

contract interface I =
entrypoint f : () => int
contract C : I =
entrypoint f() = 123
main contract Main =
stateful entrypoint test() =
let c1 : I = Chain.create() // fails
let c2 : C = Chain.create() : I // fails
let c3 = Chain.create() : I // fails
()