Skip to content

Commit

Permalink
tyck: remove the incorrect assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jun 19, 2024
1 parent 0924102 commit 6d1ead2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions base/src/main/java/org/aya/tyck/StmtTycker.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private void checkMember(@NotNull ClassMember member, @NotNull ExprTycker tycker
signature = signature.pusheen(tycker::whnf)
.descent(tycker::zonk)
.bindTele(SeqView.of(tycker.state.classThis.pop()));
// TODO: prepend {this: Class} to the telescope
new MemberDef(classRef, member.ref, signature.rawParams(), signature.result());
member.ref.signature = signature;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ record Locns(@NotNull ImmutableSeq<Param> telescope, @NotNull Term result) imple
// TODO: +1 on this
return telescope.get(i).type().instantiateTele(teleArgs.sliceView(0, i));
}
@Override public @NotNull Term result(Seq<Term> teleArgs) {
assert teleArgs.size() == telescopeSize();
return result.instantiateTele(teleArgs.view());
}
@Override public @NotNull Term result(Seq<Term> teleArgs) { return result.instantiateTele(teleArgs.view()); }
@Override public @NotNull SeqView<String> namesView() {
return telescope.view().map(Param::name);
}
Expand Down

0 comments on commit 6d1ead2

Please sign in to comment.