[NI] Complex test for "not enough" information diagnostic

This commit is contained in:
Dmitriy Novozhilov
2019-03-25 18:51:38 +03:00
committed by Mikhail Zarechenskiy
parent d40313a8d7
commit c1b586f921
5 changed files with 36 additions and 0 deletions
+11
View File
@@ -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()