[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()
@@ -0,0 +1,10 @@
package
public fun </*0*/ T : A, /*1*/ R : T> emptyStrangeMap(): kotlin.collections.Map<T, R>
public fun test7(): kotlin.collections.Map<A, A>
public interface A {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}