Richard Smith
bc395eb889
Represent integer literals as IntLiteral not as i32. ( #4532 )
...
When an `IntLiteral` appears as an operand of an `if` expression,
convert it to `i32` for now, so that we don't reject things like `if
cond then 1 else 2` due to having a non-constant value of type
`IntLiteral`.
For tuple indexing expressions such as `(a, b).0`, convert the index to
type `IntLiteral`, not to type `i32`. This isn't strictly necessary to
do in this PR, but avoids the need to provide an `IntLiteral` -> `i32`
implicit conversion for `no_prelude` tests using this syntax.
2024-11-15 23:24:15 +00:00
..
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-10-30 22:45:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-10-23 16:56:23 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:46:14 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-10-30 22:45:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-10-30 22:45:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-10-30 22:45:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:46:14 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 23:24:15 +00:00
2024-11-15 21:00:26 +00:00
2024-11-15 21:00:26 +00:00