Quick-fix for header without implementation + a set of tests #KT-14908 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-12-23 13:43:45 +03:00
parent 07de819377
commit 4774d19890
45 changed files with 890 additions and 86 deletions
@@ -0,0 +1,15 @@
// "Create header class implementation for platform JVM" "true"
header class <caret>My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
fun baz(): Unit
constructor(flag: Boolean)
val isGood: Boolean
var status: Int
}
@@ -0,0 +1,15 @@
// "Create header class implementation for platform JVM" "true"
header class My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
fun baz(): Unit
constructor(flag: Boolean)
val isGood: Boolean
var status: Int
}
+1
View File
@@ -0,0 +1 @@
// My: to be implemented
+23
View File
@@ -0,0 +1,23 @@
// My: to be implemented
impl class My {
impl fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl fun String.bar(y: Double): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl fun baz() {}
constructor(flag: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl val isGood: Boolean
get() = TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
impl var status: Int
get() = TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
set(value) {}
}