UnnecessaryVariableInspection: don't report for overriding property
#KT-39263 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
c29dbee65e
commit
122bba9102
@@ -0,0 +1,17 @@
|
||||
// PROBLEM: none
|
||||
abstract class Foo {
|
||||
abstract val bar: Int
|
||||
abstract fun baz()
|
||||
}
|
||||
|
||||
fun println(i: Int) {}
|
||||
|
||||
fun test() {
|
||||
val i = 1
|
||||
object : Foo() {
|
||||
override val <caret>bar = i
|
||||
override fun baz() {
|
||||
println(bar)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user