mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
20 lines
343 B
Kotlin
Vendored
20 lines
343 B
Kotlin
Vendored
// !DIAGNOSTICS: -DUPLICATE_CLASS_NAMES
|
|
package test
|
|
|
|
class A {
|
|
object <!REDECLARATION!>Companion<!>
|
|
|
|
companion <!REDECLARATION!>object<!>
|
|
}
|
|
|
|
class B {
|
|
companion object <!REDECLARATION!>Named<!>
|
|
|
|
object <!REDECLARATION!>Named<!>
|
|
}
|
|
|
|
class C {
|
|
class <!REDECLARATION!>Named<!>
|
|
|
|
companion object <!REDECLARATION!>Named<!>
|
|
} |