[FIR] Check type alias visibility after constructor visibility

#KT-61576 Fixed
This commit is contained in:
Brian Norman
2023-08-30 07:00:57 -05:00
committed by Space Team
parent 6ede1bcf85
commit 3590f0aa03
2 changed files with 9 additions and 1 deletions
@@ -26,7 +26,7 @@ import _
fun baz() {
a.A1("") // resolved to B constructor, OK
a.A2("") // resolved to B constructor, INVISIBLE_MEMBER because type alias is private, OK
a.<!INVISIBLE_REFERENCE!>A2<!>("") // resolved to B constructor, INVISIBLE_MEMBER because type alias is private, OK
a.A3("") checkType { _<String>() }