Minor. Fix testdata.
This commit is contained in:
+3
-2
@@ -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,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() {
|
||||
|
||||
Reference in New Issue
Block a user