mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
14 lines
425 B
Kotlin
Vendored
14 lines
425 B
Kotlin
Vendored
interface SuperInterface
|
|
|
|
open class SuperClass
|
|
|
|
<!INCOMPATIBLE_MODIFIERS!>abstract<!> <!INCOMPATIBLE_MODIFIERS!>data<!> class Base(val x: Int)
|
|
|
|
class Derived: Base(42)
|
|
|
|
<!DATA_CLASS_OVERRIDE_CONFLICT!>data<!> class Nasty(val z: Int, val y: Int): Base(z)
|
|
|
|
data class Complex(val y: Int): SuperInterface, SuperClass()
|
|
|
|
<!DATA_CLASS_OVERRIDE_CONFLICT!>data<!> class SubData(val sss: String) : <!FINAL_SUPERTYPE!>Complex<!>(42)
|