Create subclass intention implemented #KT-8473 Fixed

Can be used for implementing interfaces / abstract classes / sealed classes or extending open classes
This commit is contained in:
Mikhail Glukhikh
2016-02-17 17:06:59 +03:00
parent 7fa9ca8e9f
commit c7f3a31517
55 changed files with 887 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// "Implement interface" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
class Container {
interface Base {
val x: Boolean
val y: Double
get() = 3.14
fun foo(): String = ""
fun bar(z: Int): String
}
}
class BaseImpl : Container.Base {
override val x: Boolean
get() = throw UnsupportedOperationException()
override fun bar(z: Int): String {
throw UnsupportedOperationException()
}
}