Files
kotlin-fork/compiler/visualizer/testData/rawBuilder/declarations/derivedClass.kt
T
Ivan Cilcic fe328f8c7a Add some additional information to psi renderer
1) Trim unused spaces in annotations
2) Rewrote fq name rendering
3) Added annotations to for loop variable
4) Added type arguments render along to type parameters in functions
2019-08-30 11:50:32 +03:00

13 lines
532 B
Kotlin
Vendored

open class Base<T>(val x: T)
// constructor Base<T>(T)
// │ Derived.<init>.x: T
// │ │
class Derived<T : Any>(x: T) : Base<T>(x)
// Derived<T>
// │ constructor Derived<T : Any>(T)
// │ │ create.x: T
// │ │ │
fun <T : Any> create(x: T): Derived<T> = Derived(x)