FIR IDE: Add tests for resolving from nested types references

Some of those tests are failing in the FIR IDE
This commit is contained in:
Roman Golyshev
2020-11-27 18:08:40 +03:00
parent 8a00470b40
commit e127ea3dad
11 changed files with 215 additions and 0 deletions
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test(param: foo.bar.baz.AA.BB.<caret>Companion) {}
// REF: companion object of (in foo.bar.baz.AA).BB
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: foo.bar.<caret>baz.AA.BB.CC) {}
// REF: baz
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: foo.<caret>bar.baz.AA.BB.CC) {}
// REF: bar
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: <caret>foo.bar.baz.AA.BB.CC) {}
// REF: foo
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: foo.bar.baz.AA.BB.<caret>CC) {}
// REF: (in foo.bar.baz.AA.BB).CC
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test(param: foo.bar.baz.AA.<caret>BB.Companion) {}
// REF: (in foo.bar.baz.AA).BB
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: foo.bar.baz.AA.<caret>BB.CC) {}
// REF: (in foo.bar.baz.AA).BB
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test(param: foo.bar.baz.<caret>AA.BB.Companion) {}
// REF: (foo.bar.baz).AA
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
class CC
}
}
fun test(param: foo.bar.baz.<caret>AA.BB.CC) {}
// REF: (foo.bar.baz).AA