Minor. Fix testdata.

This commit is contained in:
Stanislav Erokhin
2016-04-04 15:43:08 +03:00
parent c1bcc76dda
commit 1c05308c05
3 changed files with 6 additions and 6 deletions
@@ -8,8 +8,9 @@ open class B {}
fun test(a: A, b: B) {
with (a) {
with (b) {
// at first we try b.foo, so 'Int.foo' should have less priority to be thrown away
`A.foo`foo(1.0)
// candidates with errors for receiver b going before candidates with errors for receiver a
// resolved to Int.foo with error: UNRESOLVED_REFERENCE_WRONG_RECEIVER
`!`foo(1.0)
}
}
}
+1 -2
View File
@@ -1,6 +1,5 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingUtilities.invokeLater'"
// WITH_RUNTIME
// ERROR: No value passed for parameter p0
// ERROR: Unresolved reference: SomethingElse
// ERROR: Unresolved reference: somethingElse
// SKIP_ERRORS_AFTER
@@ -8,7 +7,7 @@
import javax.swing.SwingUtilities
fun foo() {
SwingUtilities.<caret>invokeLater()
SwingUtilities.<caret>invokeLater {}
}
fun bar() {
@@ -1,14 +1,14 @@
// INTENTION_TEXT: "Add import for 'javax.swing.SwingUtilities.invokeLater'"
// WITH_RUNTIME
// ERROR: No value passed for parameter p0
// ERROR: Unresolved reference: SomethingElse
// ERROR: Unresolved reference: somethingElse
// SKIP_ERRORS_AFTER
import javax.swing.SwingUtilities
import javax.swing.SwingUtilities.invokeLater
fun foo() {
<caret>invokeLater()
invokeLater {}
}
fun bar() {