roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

Diffs in error messages #6906

Open lukewilliamboswell opened 4 months ago

lukewilliamboswell commented 4 months ago

Zulip discussion

── TYPE MISMATCH in Layout.roc ─────────────────────────────────────────────────

This 2nd argument to == has an unexpected type:

71│>      out == {
72│>          row: {
73│>              items: currentRowItems,
74│>              offsetY: 0,
75│>              height: 21,
76│>              currentRowItems: [],
77│>              width: 12u64,
78│>              headings
79│>          },
80│>          removedItems,
81│>          remainingItems: []
82│>      }
Compared to what I got, here's what I expected:

    { row : {
-       height : Num *,
-       offsetY : Num *,
+       galleryWidth : Int U32,
+       removedItems : List {},
+       targetRowHeight : Int U32,
-       width: Int U64
+       width: Int U32
        …
    }, … }