Files
kotlin-fork/libraries/tools/kotlinp/testData/SimpleClass.kt
T
Alexander Udalov 4b284a4890 Add kotlinp, a tool to print Kotlin metadata in class/module files
At the moment, it's not published anywhere, but that may change soon

 #KT-23198
2018-05-16 17:16:21 +02:00

14 lines
391 B
Kotlin
Vendored

class SimpleClass<in A>(val p: Int = 42) {
constructor(s: Array<String?>?) : this(s?.size ?: 0)
var x: Long = p.toLong()
external get
@JvmName("SET_X") set
internal fun <U : A, V, A> A.f(vararg z: Map<V, U?>): Set<*> where V : A {
error("")
}
protected suspend inline fun <reified T> g(crossinline a: () -> A, noinline b: suspend () -> T) {}
}