sophia/test/contracts/namespace_bug.aes
2019-06-28 09:42:28 +02:00

19 lines
290 B
Plaintext

namespace Foo =
record bla = {x : int, y : bool}
function bar() : Foo.bla = {x = 17, y = true}
contract Bug =
// Crashed the type checker
entrypoint foo() = Foo.bar()
// Also crashed the type checker
type t = Foo.bla
entrypoint test() =
let x : t = Foo.bar()
x