Skip to content

Commit

Permalink
Allow coercing to decimals via + and -
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Dec 24, 2024
1 parent fa150dc commit 7abf102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chc/type/ChiriTypeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ const binaryOperatorOperandCoercion: Partial<Record<Operator, string | BinaryCoe
".": "string",
}
const unaryOperatorOperandCoercion: Partial<Record<Operator, string>> = {
"+": "dec",
"-": "dec",
}

const operatorOperandBTypes: Partial<Record<Operator, string>> = {
Expand Down

0 comments on commit 7abf102

Please sign in to comment.