Fix: Get the type of Chain.create() from its application (#407)

* Get the type of Chain.create() from its application

* Add test contract

* Update CHANGELOG.md

* Update the tests

* Update tests again
This commit is contained in:
Gaith Hallak
2022-08-04 00:24:22 +04:00
committed by GitHub
parent 4dbc9858fb
commit c98ea25e8b
5 changed files with 59 additions and 1 deletions
@@ -0,0 +1,12 @@
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
()