Package vs class conflict in qualifier resolution:

- add test for unresolved 'a.a' after 'import a.a';
- added TODO in copy-paste test for 'a.a'
This commit is contained in:
Dmitry Petrov
2015-10-30 14:57:48 +03:00
parent e1cb13bd90
commit d060687775
4 changed files with 68 additions and 5 deletions
@@ -1,9 +1,14 @@
// ERROR: Unresolved reference: a
// ERROR: Unresolved reference: a
// ERROR: Unresolved reference: a
package to
import a.a
fun f(i: a.a) { // todo must be i: a
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()
}
+4 -1
View File
@@ -5,7 +5,10 @@ class a {
}
}
<selection>fun f(i: a) { // todo must be i: 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>