KtSimpleNameReference: add root prefix support to bindToFqName function
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
// ERROR: Unresolved reference: a
|
||||
// ERROR: Unresolved reference: a
|
||||
// ERROR: Unresolved reference: a
|
||||
package to
|
||||
|
||||
import a.a
|
||||
|
||||
fun f(i: a.a) {
|
||||
// TODO References shortening doesn't work for package vs class conflicts under the new resolution rules.
|
||||
// After importing 'a.a', expression 'a.a' is unresolved (since 'a' becomes a class).
|
||||
// 'package' in expression syntax might be required to fix it properly.
|
||||
a.a
|
||||
a.a()
|
||||
fun f(i: a) {
|
||||
a
|
||||
a()
|
||||
}
|
||||
@@ -6,9 +6,6 @@ class a {
|
||||
}
|
||||
|
||||
<selection>fun f(i: a) {
|
||||
// TODO References shortening doesn't work for package vs class conflicts under the new resolution rules.
|
||||
// After importing 'a.a', expression 'a.a' is unresolved (since 'a' becomes a class).
|
||||
// 'package' in expression syntax might be required to fix it properly.
|
||||
a
|
||||
a()
|
||||
}</selection>
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Import" "true"
|
||||
// DISABLE-ERRORS
|
||||
class java
|
||||
|
||||
fun test() {
|
||||
Arrays<caret>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.util.Arrays
|
||||
|
||||
// "Import" "true"
|
||||
// DISABLE-ERRORS
|
||||
class java
|
||||
|
||||
fun test() {
|
||||
Arrays<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Import" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun test() {
|
||||
val java = 42
|
||||
Arrays<caret>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.util.Arrays
|
||||
|
||||
// "Import" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun test() {
|
||||
val java = 42
|
||||
Arrays<caret>
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import same.same
|
||||
|
||||
// todo must be: s: same
|
||||
fun f(s: same.same) {
|
||||
fun f(s: same) {
|
||||
}
|
||||
Reference in New Issue
Block a user