add parent visiting in inference graph

GitOrigin-RevId: 9fe0a21cab61f2ef6c13a5fa0dfd0092ba188810
This commit is contained in:
Konstantin.Nisht
2019-10-09 14:08:11 +00:00
committed by intellij-monorepo-bot
parent 40a961ed58
commit a7dab00afd
4 changed files with 18 additions and 0 deletions
@@ -49,6 +49,10 @@ data class InferenceUnitGraph(val units: List<InferenceUnitNode>) {
}.forEach { parameter ->
units.find { it.type == parameter }?.run { visitTypes(this, visited, order) }
}
val parent = unit.parent
if (parent != null) {
visitTypes(parent, visited, order)
}
order.add(unit)
}
}
@@ -524,4 +524,8 @@ class AA { static void fo<caret>o(Integer a) {} }
void testCallWithInnerTypeParameter() {
doTest(true)
}
void testUnresolvedCode3() {
doTest(true)
}
}
@@ -0,0 +1,5 @@
def bar(a, b) {
b(a)
}
bar(unresolved) {}
@@ -0,0 +1,5 @@
Void bar(Object a, Closure<Void> b) {
b(a)
}
bar(unresolved) {}