diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/semantics.bad | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad index 5071d8b..518ef40 100644 --- a/tests/semantics.bad +++ b/tests/semantics.bad | |||
@@ -109,7 +109,11 @@ | |||
109 | ; let c = 1 | 109 | ; let c = 1 |
110 | ; 1 + 1 + c | 110 | ; 1 + 1 + c |
111 | ; } | 111 | ; } |
112 | fun foo(a: int b: str): (f32, f64) { | 112 | fun foo(a: int b: str): (f64, f64) { |
113 | if (a == 1) { | ||
114 | ; return("test", b) | ||
115 | return(3.0, 4.0) | ||
116 | } | ||
113 | return(1.0, 2.0) | 117 | return(1.0, 2.0) |
114 | } | 118 | } |
115 | 119 | ||