8 lines
146 B
Plaintext
Vendored
8 lines
146 B
Plaintext
Vendored
class GClass<T> {
|
|
fun foo(t: T): T {
|
|
return t
|
|
}
|
|
}
|
|
|
|
val g = GClass<Int>()
|
|
g.foo(1) // RESULT: res2: kotlin.Int = 1 |