Refactoring: unify methods to report errors in scratches

This commit is contained in:
Natalia Selezneva
2018-12-11 11:12:34 +03:00
parent 2f32c6e164
commit 2fbbf2400d
4 changed files with 25 additions and 33 deletions
+1 -2
View File
@@ -1,3 +1,2 @@
foo() // ERROR: Unresolved reference: foo
/** unresolved.kts:1 Unresolved reference: foo */
/** Compilation Error */
/** unresolved.kts:1 Unresolved reference: foo */
+1 -2
View File
@@ -9,5 +9,4 @@ fun goo(a: String) { // ERROR: Unresolved reference: goo
/** unresolvedMultiline.kts:1 Cannot choose among the following candidates without completing type inference:
@HidesMembers public inline fun <T> Iterable<???>.forEach(action: (???) -> Unit): Unit defined in kotlin.collections
@HidesMembers public inline fun <K, V> Map<out ???, ???>.forEach(action: (Map.Entry<???, ???>) -> Unit): Unit defined in kotlin.collections */
/** unresolvedMultiline.kts:5 Unresolved reference: goo */
/** Compilation Error */
/** unresolvedMultiline.kts:5 Unresolved reference: goo */