7b4f781ea8
In init block or property initializers, for `val x` declared in primary constructor, `x` reference is now resolved to property, not to parameter. So we need two different scopes for primary constructor, one for 'pure' parameters and another one for all parameters, including val/var ones. #KT-42844 Fixed
83 lines
2.8 KiB
Plaintext
Vendored
83 lines
2.8 KiB
Plaintext
Vendored
FILE: enums.kt
|
|
public final enum class Order : R|kotlin/Enum<Order>| {
|
|
private constructor(): R|Order| {
|
|
super<R|kotlin/Enum<Order>|>()
|
|
}
|
|
|
|
public final static enum entry FIRST: R|Order|
|
|
public final static enum entry SECOND: R|Order|
|
|
public final static enum entry THIRD: R|Order|
|
|
public final static fun values(): R|kotlin/Array<Order>| {
|
|
}
|
|
|
|
public final static fun valueOf(value: R|kotlin/String|): R|Order| {
|
|
}
|
|
|
|
}
|
|
public final enum class Planet : R|kotlin/Enum<Planet>| {
|
|
private constructor(m: R|kotlin/Double|, r: R|kotlin/Double|): R|Planet| {
|
|
super<R|kotlin/Enum<Planet>|>()
|
|
}
|
|
|
|
public final val m: R|kotlin/Double| = R|<local>/m|
|
|
public get(): R|kotlin/Double|
|
|
|
|
internal final val r: R|kotlin/Double| = R|<local>/r|
|
|
internal get(): R|kotlin/Double|
|
|
|
|
public final static enum entry MERCURY: R|Planet| = object : R|Planet| {
|
|
private constructor(): R|<anonymous>| {
|
|
super<R|Planet|>(Double(1.0), Double(2.0))
|
|
}
|
|
|
|
public final override fun sayHello(): R|kotlin/Unit| {
|
|
<Unresolved name: println>#(String(Hello!!!))
|
|
}
|
|
|
|
}
|
|
|
|
public final static enum entry VENERA: R|Planet| = object : R|Planet| {
|
|
private constructor(): R|<anonymous>| {
|
|
super<R|Planet|>(Double(3.0), Double(4.0))
|
|
}
|
|
|
|
public final override fun sayHello(): R|kotlin/Unit| {
|
|
<Unresolved name: println>#(String(Ola!!!))
|
|
}
|
|
|
|
}
|
|
|
|
public final static enum entry EARTH: R|Planet| = object : R|Planet| {
|
|
private constructor(): R|<anonymous>| {
|
|
super<R|Planet|>(Double(5.0), Double(6.0))
|
|
}
|
|
|
|
public final override fun sayHello(): R|kotlin/Unit| {
|
|
<Unresolved name: println>#(String(Privet!!!))
|
|
}
|
|
|
|
}
|
|
|
|
public final val g: R|kotlin/Double| = this@R|/Planet.Companion|.R|/Planet.Companion.G|.R|kotlin/Double.times|(this@R|/Planet|.R|/Planet.m|).R|kotlin/Double.div|(this@R|/Planet|.R|/Planet.r|.R|kotlin/Double.times|(this@R|/Planet|.R|/Planet.r|))
|
|
public get(): R|kotlin/Double|
|
|
|
|
public abstract fun sayHello(): R|kotlin/Unit|
|
|
|
|
public final companion object Companion : R|kotlin/Any| {
|
|
private constructor(): R|Planet.Companion| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final const val G: R|kotlin/Double| = Double(6.67E-11)
|
|
public get(): R|kotlin/Double|
|
|
|
|
}
|
|
|
|
public final static fun values(): R|kotlin/Array<Planet>| {
|
|
}
|
|
|
|
public final static fun valueOf(value: R|kotlin/String|): R|Planet| {
|
|
}
|
|
|
|
}
|