Files
kotlin-fork/idea/testData/scratch/generics.comp.after
T
2018-02-01 10:21:55 +03:00

9 lines
186 B
Plaintext
Vendored

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