Intentions: 'Implement abstract member' (Kotlin -> Kotlin)

#KT-8467 In Progress
This commit is contained in:
Alexey Sedunov
2015-12-18 15:07:16 +03:00
parent 123b813073
commit 03641ffbee
51 changed files with 889 additions and 9 deletions
@@ -0,0 +1,19 @@
// WITH_RUNTIME
//DISABLE-ERRORS
enum class E(n: Int) {
A(1) {
override fun foo(x: Int): Int {
throw UnsupportedOperationException()
}
}, B(2) {
override fun foo(x: Int): Int {
throw UnsupportedOperationException()
}
}, C(3) {
override fun foo(x: Int): Int {
throw UnsupportedOperationException()
}
};
abstract fun <caret>foo(x: Int): Int
}