Files
kotlin/idea/testData/diagnosticMessage/nestedClassShouldBeQualified.kt
Alexander Udalov 239502368a Update test data for tower resolution algorithm
- locals win
- unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus
- unqualified nested classes are temporarily reported as unresolved
- function without receiver win against extension function
- explicit import win against star import
2015-12-11 17:01:02 +03:00

40 lines
501 B
Kotlin
Vendored

// !DIAGNOSTICS_NUMBER: 0
// !DIAGNOSTICS: NESTED_CLASS_SHOULD_BE_QUALIFIED
// TODO: 5 "nested class should be qualified" dianostics should be reported here
package p
class A {
class B {
class Nested
}
}
fun A.B.test() {
Nested()
::Nested
}
class C {
companion object {
class D {
class Nested
}
}
}
fun C.Companion.D.text() {
Nested()
::Nested
}
class E {
class F {
companion object
}
}
fun E.test() {
F
}