Skip to content

Commit

Permalink
Correct typecheck of tail for seq1, fixes #669
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Mar 2, 2018
1 parent 1385c81 commit cfeab45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3341,6 +3341,11 @@ else if (question.assistantFactory.createPTypeAssistant().isType(node.getLeft().
node.setType(AstFactory.newASeqSeqType(node.getLocation(), AstFactory.newAUnknownType(node.getLocation())));
return node.getType();
}
else if (etype instanceof ASeq1SeqType)
{
ASeq1SeqType s = (ASeq1SeqType)etype;
etype = AstFactory.newASeqSeqType(node.getLocation(), s.getSeqof());
}

node.setType(etype);
return etype;
Expand Down

0 comments on commit cfeab45

Please sign in to comment.