c1ec8cbde9
(but excluding statement expressions)
13 lines
224 B
Kotlin
13 lines
224 B
Kotlin
// !DIAGNOSTICS: -UNREACHABLE_CODE
|
|
trait Tr<T> {
|
|
var v: T
|
|
}
|
|
|
|
class C {
|
|
fun plusAssign(<!UNUSED_PARAMETER!>c<!>: C) {}
|
|
}
|
|
|
|
fun test(t: Tr<out C>) {
|
|
// No error because no real assignment happens
|
|
t.v += null!!
|
|
} |