Files
kotlin-fork/idea/scripting-support/testData/scratch/generics.repl.after
T
2019-10-08 15:02:32 +03:00

10 lines
166 B
Plaintext
Vendored

// REPL_MODE: true
class GClass<T> {
fun foo(t: T): T {
return t
}
}
val g = GClass<Int>()
g.foo(1) // RESULT: res2: kotlin.Int = 1