Coercion to Unit fixed

This commit is contained in:
Andrey Breslav
2011-09-15 14:31:02 +04:00
parent 7d62e2ff82
commit 350a77cab5
5 changed files with 51 additions and 21 deletions
@@ -0,0 +1,9 @@
fun foo(u : Unit) : Int = 1
fun test() : Int {
foo(<error>1</error>)
val a : fun() : Unit = {
foo(<error>1</error>)
}
return 1
}