Quick-Fixes: Do not add 'abstract' modifier to anonymous objects

#KT-6656 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-16 19:41:20 +03:00
parent 1ed2c82008
commit 16a4dbd692
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,11 @@
// "Make 'object : T {}' abstract" "false"
// ACTION: Implement members
// ACTION: Split property declaration
// ERROR: <html>Object must be declared abstract or implement abstract member<br/><b>internal</b> <b>abstract</b> <b>fun</b> foo(): kotlin.Unit <i>defined in</i> T</html>
trait T {
fun foo()
}
fun test() {
val o = <caret>object : T {}
}