Fix bug in type checker

This commit is contained in:
Ulf Norell
2019-06-20 16:01:46 +02:00
parent 592869bf75
commit d38367e023
3 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ compilable_contracts() ->
"bitcoin_auth",
"address_literals",
"bytes_equality",
"address_chain"
"address_chain",
"namespace_bug"
].
not_yet_compilable(fate) ->
+12
View File
@@ -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()