Add test for implementing multiple interfaces

This commit is contained in:
Gaith Hallak 2021-12-18 19:01:51 +02:00
parent df676ff6e9
commit 918ff94a37
2 changed files with 10 additions and 0 deletions

View File

@ -203,6 +203,7 @@ compilable_contracts() ->
"patterns_guards",
"pipe_operator",
"contract_polymorphism",
"contract_polymorphism_multi_interface",
"contract_interface_polymorphism",
"test" % Custom general-purpose test file. Keep it last on the list.
].

View 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'