Added diagnostic tests for inference and incorporation
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun <T, R> foo(first: () -> T, second: (T) -> R): R = throw Exception()
|
||||
fun test() {
|
||||
val r = foo( { 4 }, { "${it + 1}" } )
|
||||
r checkType { _<String>() }
|
||||
}
|
||||
Reference in New Issue
Block a user