no need for context lookup of enclosing singletons #KT-2695 fixed

This commit is contained in:
Alex Tkachman
2012-09-12 19:41:26 +03:00
parent 1121d9b316
commit ca65574bce
4 changed files with 60 additions and 14 deletions
@@ -0,0 +1,16 @@
class A() {
fun ok() = Foo.Bar.bar() + Foo.Bar.barv
private object Foo {
fun foo() = "O"
val foov = "K"
public object Bar {
fun bar() = foo()
val barv = foov
}
}
}
fun box() = A().ok()