Commit graph

14 commits

Author SHA1 Message Date
Lars Frogner
560171c238
Add Num.[f32,f64,dec]_[to,from]_bits builtins and deprecate Num.[f32,f64]_[to,from]_parts (#7741)
* Add `Num.[f32,f64,dec]_[to,from]_bits` builtins

* Update mono tests

* Deprecate `Num.[f32,f64]_[to,from]_parts`
2025-04-18 10:10:45 +02:00
Anton-4
1570a3df10
Add Str.len stub (#7732)
* Add Str.len stub

* mono update
2025-04-09 12:19:34 +02:00
Norbert Hajagos
fc0a9ec4cf
add with_ascii_uppercased and caseless_ascii_equals to Str 2025-01-23 15:21:11 +01:00
shua
359b3d5883
update mono tests 2025-01-20 19:19:43 +01:00
Norbert Hajagos
f372e18600
update mono tests 2025-01-20 11:02:59 +01:00
Sam Mohr
fce14d31b0
Move desugaring to new roc_can_solo crate 2025-01-19 07:16:43 -08:00
Anton-4
b2e3adf508
proc sort fix #7531 #7514 #7496 2025-01-18 23:15:18 +01:00
Sam Mohr
b8de09d048
Update tests 2025-01-17 19:10:20 -08:00
Sam Mohr
3d4c302807
Fix tests 2025-01-07 14:01:03 -08:00
Sam Mohr
83b8b0e557
Update uitests 2025-01-05 21:25:22 -08:00
Sam Mohr
b56fbd38e1
Progress on updating entire compiler for snake_case 2025-01-05 03:48:03 -08:00
Luke Boswell
34a3fd9dec
update mono tests 2024-09-29 15:06:15 +10:00
Elias Mulhall
82d0566041
Use module scope instead of var store to generate idents in dbg desugar
Fix a bug in `dbg` expression desugaring by using the module scope to
generate unique identifiers instead of the variable store.

In the initial implementation of `dbg` expressions we used the
`VarStore` to generate unique identifiers for new variables created
during desugaring. We should have instead used the current module's
`Scope`, which handles identifiers within the module. Each scope has its
own incrementing variable count which is independent of the shared
variable store. The scope is used to generate new identifiers at other
points in canonicalization, such as when assigning a global identifier
to closures and `expect`s. It's possible that the identifier generated
for `dbg` could conflict with an identifier generated by the scope,
resulting in a confusing error.
2024-09-03 14:00:39 -04:00
Elias Mulhall
9dae102603 Allow dbg expression inside string interpolation 2024-08-28 11:53:44 -04:00