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
+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()