Report default object specific diagnostics on 'default' modifier

This commit is contained in:
Pavel V. Talanov
2015-03-06 16:21:58 +03:00
parent 012d25dbca
commit 5540f09751
10 changed files with 31 additions and 22 deletions
@@ -2,7 +2,7 @@ enum class E {
FIRST
SECOND {
default <!DEFAULT_OBJECT_NOT_ALLOWED!>object<!> {
<!DEFAULT_OBJECT_NOT_ALLOWED!>default<!> object {
fun foo() = 42
}
}