[NI] Complex test for "not enough" information diagnostic
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
d40313a8d7
commit
c1b586f921
@@ -0,0 +1,11 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
// !LANGUAGE: +NewInference
|
||||
// Issue: KT-30590
|
||||
|
||||
interface A
|
||||
fun <T: A, R: T> emptyStrangeMap(): Map<T, R> = TODO()
|
||||
fun test7() : Map<A, A> = emptyStrangeMap()
|
||||
|
||||
fun test() = emptyStrangeMap()
|
||||
|
||||
Reference in New Issue
Block a user