Effective visibility: local is now considered private, TYPE_DEPENDS_ON_LOCAL_CLASS diagnostics removed as repeated #KT-9542 Fixed #KT-9526 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class A {
|
||||
private open class B
|
||||
fun f() {
|
||||
// Local from private: Ok
|
||||
class C : B()
|
||||
}
|
||||
}
|
||||
|
||||
private open class D
|
||||
|
||||
fun f(): Int {
|
||||
// Local from private: Ok
|
||||
val x = object : D() { }
|
||||
return x.hashCode()
|
||||
}
|
||||
Reference in New Issue
Block a user