Skip to content

Commit

Permalink
class-resolve: fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoTented authored and ice1000 committed Dec 3, 2024
1 parent 63ec562 commit a4af18c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/src/main/java/org/aya/tyck/ClassResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import kala.collection.immutable.ImmutableSeq;
import kala.collection.mutable.MutableList;
import kala.collection.mutable.MutableMap;
import org.aya.resolve.context.Candidate;
import org.aya.resolve.context.ModuleContext;
import org.aya.syntax.core.def.AnyDef;
import org.aya.syntax.core.def.ClassDefLike;
Expand Down Expand Up @@ -35,7 +36,7 @@ public ClassResolver(@NotNull ModuleContext env) {
if (envCache != null) return envCache;
var result = env.symbols().table()
.valuesView()
.flatMap(MapLike::valuesView)
.flatMap(Candidate::getAll)
.filterIsInstance(AnyDefVar.class);

Check warning on line 40 in base/src/main/java/org/aya/tyck/ClassResolver.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/tyck/ClassResolver.java#L37-L40

Added lines #L37 - L40 were not covered by tests

var builder = MutableMap.<ClassDefLike, ImmutableSeq<AnyDefVar>>create();
Expand Down

0 comments on commit a4af18c

Please sign in to comment.