mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
41 lines
730 B
Kotlin
41 lines
730 B
Kotlin
package test.innerTest
|
|
|
|
fun <T1> T1.func(a: T1): T1 = a
|
|
val <T2> T2.prop: T2? = null
|
|
var propVar: Any? = null
|
|
|
|
trait Trait<T3> {
|
|
fun traitFunc(): Unit {}
|
|
val traitProp: Any?
|
|
}
|
|
|
|
abstract class Class<T4> : Trait<Any> {
|
|
fun classFunc(): Unit {}
|
|
val classProp: Any? = null
|
|
|
|
default object {
|
|
fun classObjFunc(): Unit {}
|
|
val classObjProp: Any? = null
|
|
}
|
|
}
|
|
|
|
object Object {
|
|
fun objFunc(): Unit {}
|
|
val objProp: Any? = null
|
|
}
|
|
|
|
trait Outer {
|
|
trait NestedTrait {
|
|
fun nestedTraitFun() {}
|
|
}
|
|
|
|
abstract class NestedClass {
|
|
default object {
|
|
fun nestedClassObjFunc(): Unit {}
|
|
}
|
|
}
|
|
|
|
object NestedObject {
|
|
fun nestedFunc(): Unit {}
|
|
}
|
|
} |