Files
kotlin-fork/idea/testData/copyPaste/imports/ClassResolvedToPackage.kt
T
Dmitry Petrov d060687775 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'
2015-11-02 10:22:50 +03:00

14 lines
381 B
Kotlin
Vendored

package a
class a {
companion object {
}
}
<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>