KT-5976 Parser recovery is poor on object with parameters

#KT-5976 Fixed
This commit is contained in:
Andrey Breslav
2014-10-14 14:35:43 +04:00
parent d25a858214
commit 391b57077b
41 changed files with 2088 additions and 52 deletions
@@ -1,5 +1,5 @@
fun main(args: Array<String>) {
String.class
<error descr="Class name expected">}</error><EOLError descr="Expecting '}"></EOLError>
<error descr="Name expected">}</error><EOLError descr="Expecting '}"></EOLError>
// EA-56152: An attempt to build light class in checker to get diagnotics
@@ -9,7 +9,7 @@ fun foo() {
doSomething(object : A() {}, object: X {})
fun bar() {
val x = object O2: X {
val x = object : X {
}
}
@@ -1,3 +1,4 @@
Unclassified usage (12: 17) val x = object : X {
Unclassified usage (7: 12) open class A: X {
Unclassified usage (9: 17) doSomething(object : A() {}, object: X {})
Unclassified usage (9: 34) doSomething(object : A() {}, object: X {})