JSMonk/hegel

Relational operations should inferred for string as well

Open

#333 创建于 2021年4月17日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (2,047 star) (55 fork)batch import
help wanted

描述

function le(a, b) {
    return a <= b
}

Actual: a and b infer as $StrictUnion<bigint | number>

Expected a and b infer as $StrictUnion<bigint | number | string>

贡献者指南

Relational operations should inferred for string as well · JSMonk/hegel#333 | Good First Issue