Fix testdata after switching idea version to 182

The source of changes is commit the following commit in
intelllij-community repo:

b2b723fa449b16bb1da8102a5efdc219977fefe0 speedup java class resolve a bit

Eseentially, it makes Java resolve (which Kotlin reuses) accept first
matching candidate from explicit named import, instead of continuing
search.

Hence, behavior in cases where several conflicting imports are present,
has changed: before, reference to such names were unresolved, now it's
candidate from first import (see also test UsageMixed.java in the
intellij-community repo).

Therefore, previously we saw such types as undeclared and reported
MISSING_DEPENDENCY_CLASS on them (assuming they are not present in
classpath); now we see such types as properly resolved, so error is
gone.

Because behavior has changed only in case there already was "red" code,
it is not a BC and we can just accept changes.
This commit is contained in:
Dmitry Savvinov
2018-08-06 15:04:28 +03:00
parent ed5709afdb
commit a71f09022c
3 changed files with 3 additions and 3 deletions
@@ -27,4 +27,4 @@ import a.a
class A : a()
fun test() = A().<!MISSING_DEPENDENCY_CLASS!>getO<!>()
fun test() = A().getO()
@@ -33,5 +33,5 @@ public class A2 {
// FILE: a.kt
package b
fun test() = A1().<!MISSING_DEPENDENCY_CLASS!>getB<!>()
fun test() = A1().getB()
fun test2() = A2().<!MISSING_DEPENDENCY_CLASS!>getB<!>()
@@ -35,5 +35,5 @@ public class A2 {
// FILE: a.kt
package b
fun test() = A1().<!MISSING_DEPENDENCY_CLASS!>getB<!>()
fun test() = A1().getB()
fun test2() = A2().<!MISSING_DEPENDENCY_CLASS!>getB<!>()