sophia/test/contracts/namespace_bug.aes
2019-06-27 09:15:27 +02:00

19 lines
286 B
Plaintext

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