Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.jet
T
Stepan Koltsov 52c1e9a950 one more case of KT-445 Don't allow deep instanceof for erased parameters
===
(a : List<out Any>) is List<out Int>
===
2011-12-01 17:41:13 +04:00

6 lines
108 B
Plaintext

// +JDK
import java.util.List
fun f(a : List<out Any>) = a is <!CANNOT_CHECK_FOR_ERASED!>List<out Int><!>