FE 1.0: use TYPE_VARIANCE_CONFLICT deprecation factory
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class Outer<out E, in F> {
|
||||
inner class Inner {
|
||||
fun unsafe1(x: <!TYPE_VARIANCE_CONFLICT!>E<!>) {}
|
||||
fun unsafe2(x: Collection<<!TYPE_VARIANCE_CONFLICT!>E?<!>>) {}
|
||||
fun unsafe3(): <!TYPE_VARIANCE_CONFLICT!>F?<!> = null
|
||||
fun unsafe4(): Collection<<!TYPE_VARIANCE_CONFLICT!>F<!>>? = null
|
||||
fun unsafe1(x: <!TYPE_VARIANCE_CONFLICT_ERROR!>E<!>) {}
|
||||
fun unsafe2(x: Collection<<!TYPE_VARIANCE_CONFLICT_ERROR!>E?<!>>) {}
|
||||
fun unsafe3(): <!TYPE_VARIANCE_CONFLICT_ERROR!>F?<!> = null
|
||||
fun unsafe4(): Collection<<!TYPE_VARIANCE_CONFLICT_ERROR!>F<!>>? = null
|
||||
}
|
||||
|
||||
// Should be errors
|
||||
|
||||
Reference in New Issue
Block a user