Don't propose to make objects abstract (KT-9795)

#KT-9795 Fixed
This commit is contained in:
Nikolay Krasko
2015-10-28 16:01:50 +03:00
parent 8bef335b71
commit 41cbc12d7f
4 changed files with 25 additions and 11 deletions
@@ -0,0 +1,11 @@
// "Make 'object : T {}' abstract" "false"
// ACTION: Implement members
// ACTION: Split property declaration
// ERROR: Object must be declared abstract or implement abstract member public abstract fun foo(): kotlin.Unit defined in T
interface T {
fun foo()
}
fun test() {
val o = <caret>object : T {}
}