[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
//FILE:a.kt
|
||||
//KT-900 Inaccessible class should be unresolved
|
||||
|
||||
package a
|
||||
|
||||
fun foo() {
|
||||
val b : B = <!UNRESOLVED_REFERENCE!>B<!>() //only B() is unresolved, but in ": B" and "B.foo()" B should also be unresolved
|
||||
<!UNRESOLVED_REFERENCE!>B<!>.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>P<!>.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>M<!>.<!UNRESOLVED_REFERENCE!>bar<!>()
|
||||
}
|
||||
|
||||
class A() {
|
||||
companion object {
|
||||
class B() {
|
||||
companion object {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
|
||||
object P {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object N {
|
||||
object M {
|
||||
fun bar() {}
|
||||
}
|
||||
}
|
||||
|
||||
//FILE:b.kt
|
||||
package b
|
||||
|
||||
import b.N.M
|
||||
import b.A.Companion.P
|
||||
import b.A.Companion.B
|
||||
|
||||
fun foo() {
|
||||
val b : B = B()
|
||||
B.foo()
|
||||
|
||||
P.foo()
|
||||
|
||||
M.bar()
|
||||
}
|
||||
|
||||
class A() {
|
||||
companion object {
|
||||
class B() {
|
||||
companion object {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
|
||||
object P {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object N {
|
||||
object M {
|
||||
fun bar() {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user