35 lines
434 B
Kotlin
35 lines
434 B
Kotlin
package test
|
|
|
|
class ClassWithClassObject {
|
|
fun f() {
|
|
}
|
|
|
|
class object {
|
|
fun f() {
|
|
}
|
|
|
|
fun Int.f() {
|
|
}
|
|
|
|
private fun privateFun() {
|
|
}
|
|
|
|
val a: A = A()
|
|
|
|
public var b: B = B()
|
|
|
|
val Int.g: Int
|
|
get() = this + 2
|
|
|
|
fun <T, K, G> complexFun(a: T, b: K, c: G): G {
|
|
throw AssertionError()
|
|
}
|
|
}
|
|
}
|
|
|
|
class B {
|
|
}
|
|
|
|
class A {
|
|
}
|