Commit graph

13 commits

Author SHA1 Message Date
Ayaz Hafiz
f1a6ea6a40
Typecheck and compile opaque wrapping functions
This enables you to write something like

```
A := U8
List.map [1, 2, 3] @A
```

which will be compiled as if it was `List.map [1, 2, 3] \x -> @A x`.

Closes #3499
2022-07-12 18:38:03 -04:00
Ayaz Hafiz
669d69c4cf
Clippy 2022-07-12 11:29:11 -04:00
Ayaz Hafiz
e626bac931
Be extremely aggressive about inlining 2022-07-12 11:00:05 -04:00
Ayaz Hafiz
0274691813
Preserve uls_of_var when copying types 2022-07-12 10:58:21 -04:00
Ayaz Hafiz
4707b11727
Clone tag and field names across subs, add a test 2022-07-12 10:47:44 -04:00
Ayaz Hafiz
c915707c83
Get rid of arenas 2022-07-12 10:07:34 -04:00
Ayaz Hafiz
46fdda333f
Use a trait to do copies 2022-07-12 10:02:11 -04:00
Ayaz Hafiz
c3b2e9aa97
Add copy expr test 2022-07-12 09:30:51 -04:00
Ayaz Hafiz
7031d26299
mono copy: copy all vars in deep expr 2022-07-12 09:18:43 -04:00
Ayaz Hafiz
5d74a376af
Attach ambient function vars to lambda sets 2022-07-06 13:04:29 -04:00
Ayaz Hafiz
4ef8ceef9e
Clippy 2022-07-05 22:16:53 -04:00
Ayaz Hafiz
c154a337a9
Get deep range numbers working 2022-07-05 22:16:52 -04:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
Renamed from compiler/mono/src/copy.rs (Browse further)