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
@@ -1,13 +1,12 @@
package Jet86
class A {
class object {
val x = 1
}
<!MANY_CLASS_OBJECTS!>class object { // error
<!MANY_CLASS_OBJECTS!>class object<!> { // error
val x = 1
}<!>
}
}
class B() {
@@ -15,9 +14,9 @@ class B() {
}
object b {
<!CLASS_OBJECT_NOT_ALLOWED!>class object {
<!CLASS_OBJECT_NOT_ALLOWED!>class object<!> {
val x = 1
} // error<!>
} // error
}
val a = A.x