Add test for implementing multiple interfaces
This commit is contained in:
parent
df676ff6e9
commit
918ff94a37
@ -203,6 +203,7 @@ compilable_contracts() ->
|
|||||||
"patterns_guards",
|
"patterns_guards",
|
||||||
"pipe_operator",
|
"pipe_operator",
|
||||||
"contract_polymorphism",
|
"contract_polymorphism",
|
||||||
|
"contract_polymorphism_multi_interface",
|
||||||
"contract_interface_polymorphism",
|
"contract_interface_polymorphism",
|
||||||
"test" % Custom general-purpose test file. Keep it last on the list.
|
"test" % Custom general-purpose test file. Keep it last on the list.
|
||||||
].
|
].
|
||||||
|
9
test/contracts/contract_polymorphism_multi_interface.aes
Normal file
9
test/contracts/contract_polymorphism_multi_interface.aes
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
contract interface I =
|
||||||
|
entrypoint f : () => int
|
||||||
|
|
||||||
|
contract interface J =
|
||||||
|
entrypoint g : () => char
|
||||||
|
|
||||||
|
contract C : I, J =
|
||||||
|
entrypoint f() = 1
|
||||||
|
entrypoint g() = 'c'
|
Loading…
x
Reference in New Issue
Block a user