Code Insight: "Generate secondary constructor" action
#KT-6970 Fixed
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// ACTION_CLASS: org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateSecondaryConstructorAction
|
||||
open class Base<X, Y>(n: X) {
|
||||
constructor(x: X, y: Y): this(x)
|
||||
}
|
||||
|
||||
class Foo<U> : Base<U, Int> {<caret>
|
||||
val x = 1
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user