Polymorphism support #848

Merged
ghallak merged 53 commits from ghallak/307 into master 2022-06-17 18:09:07 +09:00
2 changed files with 10 additions and 0 deletions
Showing only changes of commit 918ff94a37 - Show all commits

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'