mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
- 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
40 lines
501 B
Kotlin
Vendored
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
|
|
} |