SimplesClosure test fixed.

This commit is contained in:
Andrey Breslav
2011-06-20 16:18:49 +04:00
parent b4ded8702c
commit 760b643df9
10 changed files with 194 additions and 14 deletions
@@ -36,3 +36,15 @@ l1:
error:
<ERROR>
=====================
== a ==
val a = Array<Int>
---------------------
l0:
<START>
r(Array)
r(Array<Int>)
l1:
<END>
error:
<ERROR>
=====================
@@ -55,3 +55,56 @@ l1:
error:
<ERROR>
=====================
== x ==
var x = 1
---------------------
l0:
<START>
r(1)
l1:
<END>
error:
<ERROR>
=====================
== y ==
val y = true && false
---------------------
l0:
<START>
r(true)
jf(l2)
r(false)
l2:
r(true && false)
l1:
<END>
error:
<ERROR>
=====================
== z ==
val z = false && true
---------------------
l0:
<START>
r(false)
jf(l2)
r(true)
l2:
r(false && true)
l1:
<END>
error:
<ERROR>
=====================
== t ==
val t = Test()
---------------------
l0:
<START>
r(Test)
r(Test())
l1:
<END>
error:
<ERROR>
=====================
@@ -1,7 +1,7 @@
namespace a {
val foo = <error>bar()</error>
val foo = bar()
fun bar() = foo
fun bar() = <error>foo</error>
}
namespace b {
@@ -0,0 +1,3 @@
fun invoker(~gen~gen : {() : Int}) : Int {
return `gen`gen() // Says it cannot resolve 'gen' here
}