Make $default methods non-private, avoid generating accessors for them
#KT-5786 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
private fun Int.foo(other: Int = 5): Int = this + other
|
||||
|
||||
inner class B {
|
||||
fun bar() = 37.foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = if (A().B().bar() == 42) "OK" else "Fail"
|
||||
Reference in New Issue
Block a user