diff --git a/test/contracts/namespace_bug.aes b/test/contracts/namespace_bug.aes index 62ad202..6a0156a 100644 --- a/test/contracts/namespace_bug.aes +++ b/test/contracts/namespace_bug.aes @@ -8,5 +8,11 @@ namespace Foo = contract Bug = // Crashed the type checker - function foo () = Foo.bar() + function foo() = Foo.bar() + // Also crashed the type checker + type t = Foo.bla + + function test() = + let x : t = Foo.bar() + x