Return correct PSI expression for EmptyLabeledReturn
Fixes diagnostic reporting for appropriate constraint error #kt-32792 fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
inline fun <T> tryLambdas(lamb : () -> T) : T{
|
||||
return lamb.invoke()
|
||||
}
|
||||
fun main() {
|
||||
tryLambdas<String> {
|
||||
<!TYPE_MISMATCH!>return@tryLambdas<!>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
inline fun <T> tryLambdas(lamb : () -> T) : T{
|
||||
return lamb.invoke()
|
||||
}
|
||||
fun main() {
|
||||
tryLambdas<String> {
|
||||
<!TYPE_MISMATCH!>return@tryLambdas<!>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public fun main(): kotlin.Unit
|
||||
public inline fun </*0*/ T> tryLambdas(/*0*/ lamb: () -> T): T
|
||||
Reference in New Issue
Block a user