Scratch: find correct line to report error at

^KT-23480 Fixed
EA-117936 Fixed
This commit is contained in:
Natalia Selezneva
2018-03-15 09:41:24 +03:00
parent 62fadd9086
commit bed5a3c8f3
5 changed files with 48 additions and 14 deletions
+3
View File
@@ -0,0 +1,3 @@
foo.forEach { // ERROR: Unresolved reference: foo; Cannot choose among the following candidates without completing type inference:
1 + 1
}
+3
View File
@@ -0,0 +1,3 @@
foo.forEach {
1 + 1
}
+3
View File
@@ -0,0 +1,3 @@
foo.forEach { // ERROR: error: unresolved reference: foo
1 + 1
}