Fixed highlighting range for errors in class object

This commit is contained in:
Valentin Kipyatkov
2014-10-31 14:11:01 +03:00
parent 65f66de597
commit f0b93f3de3
9 changed files with 29 additions and 24 deletions
+4 -4
View File
@@ -4,9 +4,9 @@ class A {
class object {
val x = 1
}
<error>class object { // error
<error descr="[MANY_CLASS_OBJECTS] Only one class object is allowed per class">class object</error> { // error
val x = 1
}</error>
}
}
class B() {
@@ -14,9 +14,9 @@ class B() {
}
object b {
<error>class object {
<error descr="[CLASS_OBJECT_NOT_ALLOWED] A class object is not allowed here">class object</error> {
val x = 1
}</error>
}
// error
}