Prohibit check for instance of a non-reified, non-subtype type parameter

#KT-12683 Fixed
 #KT-9986 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-03-30 03:55:56 +03:00
parent 9fdd5fe5e8
commit 0d6b7bb6a1
8 changed files with 59 additions and 7 deletions
@@ -0,0 +1,5 @@
package
public fun </*0*/ T> foo(/*0*/ x: kotlin.collections.List<T>, /*1*/ y: kotlin.collections.List<T>?): kotlin.Unit
public inline fun </*0*/ reified T> test(/*0*/ x: T?): kotlin.Unit
public fun </*0*/ T, /*1*/ S : T> test(/*0*/ x: T?, /*1*/ y: S, /*2*/ z: T): kotlin.Unit