Added diagnostic tests for inference and incorporation
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
fun <T: Any> test(f: (T) -> T?) {
|
||||
doFun(f.ext())
|
||||
}
|
||||
|
||||
fun <E : Any> Function1<E, E?>.ext(): Function0<E?> = throw Exception()
|
||||
fun <R : Any> doFun(f: () -> R?) = f
|
||||
Reference in New Issue
Block a user