10 lines
226 B
Plaintext
Vendored
10 lines
226 B
Plaintext
Vendored
// REPL_MODE: false
|
|
|
|
class GClass<T> { // RESULT: class GClass<T>
|
|
fun foo(t: T): T {
|
|
return t
|
|
}
|
|
}
|
|
|
|
val g = GClass<Int>() // RESULT: val g: Generics.GClass<Int>
|
|
g.foo(1) // RESULT: 1 |