mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
22 lines
472 B
Kotlin
22 lines
472 B
Kotlin
class Identifier<T>(t : T?, myHasDollar : Boolean) {
|
|
private val myT : T?
|
|
|
|
public fun getName() : T? { return myT }
|
|
|
|
default object {
|
|
open public fun init<T>(name : T?) : Identifier<T> {
|
|
val __ = Identifier<T>(name, false)
|
|
return __
|
|
}
|
|
}
|
|
{
|
|
$myT = t
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
var i3 : Identifier<String?>? = Identifier.init<String?>("name")
|
|
System.out?.println(i3?.getName())
|
|
return "OK"
|
|
}
|