Support local return in lambda without explicit return type

This commit is contained in:
Stanislav Erokhin
2015-02-17 15:20:12 +03:00
parent def81d30dc
commit 57fd5cc84c
41 changed files with 340 additions and 40 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ fun unitEmptyReturn() : Unit {return}
fun unitIntReturn() : Unit {return <error>1</error>}
fun unitUnitReturn() : Unit {return Unit}
fun test1() : Any = { <error>return</error> }
fun test2() : Any = @a {<error>return@a 1</error>}
fun test2() : Any = @a {return@a 1}
fun test3() : Any { <error>return</error> }
fun bbb() {