mirror of https://github.com/exaloop/codon.git
Add type is support
parent
894bf5b375
commit
57881a8825
|
@ -569,6 +569,8 @@ ExprPtr TypecheckVisitor::transformBinaryIs(BinaryExpr *expr) {
|
|||
unify(expr->type, ctx->getType("bool"));
|
||||
return nullptr;
|
||||
}
|
||||
if (expr->lexpr->isType() && expr->rexpr->isType())
|
||||
return transform(N<BoolExpr>(lc->realizedName() == rc->realizedName()));
|
||||
if (!lc->getRecord() && !rc->getRecord()) {
|
||||
// Both reference types: `return lhs.__raw__() == rhs.__raw__()`
|
||||
return transform(
|
||||
|
|
Loading…
Reference in New Issue