Fix for KT-6863: Internal compiler error folding functions
#KT-6863 Fixed
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user