File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
usvm-dataflow-ts/src/main/kotlin/org/usvm/dataflow/ts/infer Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -671,11 +671,10 @@ class TypeInferenceManager(
671
671
is EtsTypeFact .ObjectEtsTypeFact -> {
672
672
val propertyAccessor = property.firstOrNull()
673
673
if (propertyAccessor == null ) {
674
- // TODO: handle 'type=union' by exploding it into multiple ObjectFacts (later combined with union) with class names from union.
675
674
if (type is EtsTypeFact .UnionEtsTypeFact ) {
676
- return type.types.map {
677
- refineProperty(property, it) ? : return null
678
- }.reduce { acc: EtsTypeFact , t: EtsTypeFact -> acc.union(t) }
675
+ type.types.mapNotNull {
676
+ refineProperty(property, it)
677
+ }.reduceOrNull { acc: EtsTypeFact , t: EtsTypeFact -> acc.union(t) }
679
678
}
680
679
681
680
if (type is EtsTypeFact .StringEtsTypeFact ) {
You can’t perform that action at this time.
0 commit comments