Add inspection: redundant internal in local anonymous object / class
So #KT-23617 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
1d3ba5641d
commit
ff63ba4dc1
+17
@@ -30,3 +30,20 @@ sealed class G constructor(val y: Int) {
|
||||
|
||||
object H : G()
|
||||
}
|
||||
|
||||
interface I {
|
||||
fun bar()
|
||||
}
|
||||
|
||||
fun f() {
|
||||
val i = object : I {
|
||||
internal var foo = 0
|
||||
override fun bar() {}
|
||||
}
|
||||
i.foo = 1
|
||||
|
||||
class LocalClass {
|
||||
internal var foo = 0
|
||||
}
|
||||
LocalClass().foo = 1
|
||||
}
|
||||
Reference in New Issue
Block a user