Make $default methods non-private, avoid generating accessors for them

#KT-5786 Fixed
This commit is contained in:
Alexander Udalov
2015-04-23 16:42:51 +03:00
parent dc05596ce0
commit 07c2442405
10 changed files with 132 additions and 19 deletions
@@ -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"