K2: reproduce KT-57889
This commit is contained in:
committed by
Space Team
parent
34f8851ac1
commit
f9a7a7fda2
+10
@@ -0,0 +1,10 @@
|
||||
// ISSUE: KT-57889
|
||||
|
||||
class SafeResult<S>
|
||||
|
||||
inline fun <T> checkNotEdt(body: (SafeResult<T>) -> Nothing) {}
|
||||
|
||||
private fun <V> getNonEdt(): SafeResult<V> {
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>checkNotEdt<!> { return it }
|
||||
return SafeResult()
|
||||
}
|
||||
compiler/testData/diagnostics/testsWithStdLib/builderInference/inferenceFromLambdaReturnStatement.kt
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// ISSUE: KT-57889
|
||||
|
||||
class SafeResult<S>
|
||||
|
||||
inline fun <T> checkNotEdt(body: (SafeResult<T>) -> Nothing) {}
|
||||
|
||||
private fun <V> getNonEdt(): SafeResult<V> {
|
||||
checkNotEdt { return it }
|
||||
return SafeResult()
|
||||
}
|
||||
Reference in New Issue
Block a user