Fix for KT-6863: Internal compiler error folding functions

#KT-6863 Fixed
This commit is contained in:
Michael Bogdanov
2015-04-09 14:21:55 +03:00
parent a24d845bd0
commit 67c2f7105b
17 changed files with 108 additions and 29 deletions
@@ -0,0 +1,11 @@
fun box() : String {
test {
<!RETURN_NOT_ALLOWED!>return@box "123"<!>
}
return "OK"
}
<!NOTHING_TO_INLINE!>inline fun <T> test(p: T)<!> {
p.toString()
}
@@ -0,0 +1,4 @@
package
internal fun box(): kotlin.String
kotlin.inline() internal fun </*0*/ T> test(/*0*/ p: T): kotlin.Unit
@@ -0,0 +1,11 @@
fun box() : String {
test {
<!RETURN_NOT_ALLOWED!>return@box "123"<!>
}
return "OK"
}
<!NOTHING_TO_INLINE!>inline fun test(p: Any)<!> {
p.toString()
}
@@ -0,0 +1,4 @@
package
internal fun box(): kotlin.String
kotlin.inline() internal fun test(/*0*/ p: kotlin.Any): kotlin.Unit