Fix class object visibility check

ExpressionTypingContext now has a scope for visibility checking, which isn't
replaced on replaceScope()
This commit is contained in:
Alexander Udalov
2013-11-22 17:03:34 +04:00
parent d82e8b9a35
commit c2598faa4e
5 changed files with 24 additions and 7 deletions
@@ -10,6 +10,6 @@ class A {
}
}
fun f1() = <!INVISIBLE_MEMBER!>A<!>.B.C
fun f1() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>
fun f2() = <!INVISIBLE_MEMBER!>A<!>.B.C.<!INVISIBLE_MEMBER!>foo<!>()
fun f2() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>.<!INVISIBLE_MEMBER!>foo<!>()