Create actual: add delegation to secondary constructor, if needed

#KT-26518 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-14 19:28:41 +03:00
parent 90a2f70fd1
commit 46a5d76254
9 changed files with 39 additions and 2 deletions
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
}
@@ -0,0 +1,5 @@
// "Create actual class for module testModule_JVM (JVM)" "true"
expect class <caret>Constructors(s: String) {
constructor(i: Int)
}
@@ -0,0 +1 @@
// Constructors: to be implemented
@@ -0,0 +1,6 @@
// Constructors: to be implemented
actual class Constructors actual constructor(s: String) {
actual constructor(i: Int) : this() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}