Fix compiler crash on missing let body

This commit is contained in:
Ulf Norell
2019-06-21 14:16:26 +02:00
parent d38367e023
commit 7fa98892a8
3 changed files with 34 additions and 4 deletions
+15
View File
@@ -42,3 +42,18 @@ contract Test =
set_x(set_x(x, r), x)
function repeated_arg(x : int, y, x : string, y : bool) : string = x
function missing1() =
let x = 0
function missing_fun1() =
let f(x) = x
function missing2() =
let x = 0
let y = 0
function missing_fun2() =
let f() = 0
let g() = f()