Scratch: report errors at the correct line

^KT-24364 Fixed
This commit is contained in:
Natalia Selezneva
2018-05-14 14:50:23 +03:00
parent 6427c79110
commit 4ee41d502a
4 changed files with 14 additions and 3 deletions
+4
View File
@@ -1,3 +1,7 @@
foo.forEach { // ERROR: Unresolved reference: foo; Cannot choose among the following candidates wi...
1 + 1
}
fun goo(a: String) { // ERROR: Unresolved reference: goo
super.goo(a)
}
+4
View File
@@ -1,3 +1,7 @@
foo.forEach {
1 + 1
}
fun goo(a: String) {
super.goo(a)
}
+4
View File
@@ -1,3 +1,7 @@
foo.forEach { // ERROR: error: unresolved reference: foo
1 + 1
}
fun goo(a: String) { // ERROR: error: unresolved reference: goo
super.goo(a)
}