Fix bug in type checker
This commit is contained in:
@@ -114,7 +114,8 @@ compilable_contracts() ->
|
||||
"bitcoin_auth",
|
||||
"address_literals",
|
||||
"bytes_equality",
|
||||
"address_chain"
|
||||
"address_chain",
|
||||
"namespace_bug"
|
||||
].
|
||||
|
||||
not_yet_compilable(fate) ->
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user