Merge pull request #7450 from roc-lang/ayaz/bugfix-ts

Minor simplifications to typechecker
This commit is contained in:
Luke Boswell 2025-01-08 16:28:25 +11:00 committed by GitHub
commit 99dfc5529d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 232 additions and 302 deletions

View file

@ -7,7 +7,7 @@ main =
# ^^^ a, Bool -[[foo(1)]]-> Str
bar = \_ -> foo {} Bool.true
# ^^^ {}, Bool -[[]]-> Str
# ^^^ {}, Bool -[[foo(1)]]-> Str
foo "" Bool.false
# ^^^{inst} Str, Bool -[[foo(1)]]-> Str

View file

@ -5,8 +5,8 @@ main =
map : { f1: (I64 -> I64) } -> List I64
map = \{ f1 } -> List.concat [f1 1] (map { f1 })
# ^^^ { f1 : I64 -[[]]-> I64 } -[[map(2)]]-> List I64
# ^^^ { f1 : I64 -[[]]-> I64 } -[[map(2)]]-> List I64
# ^^^ { f1 : I64 -[[f(1)]]-> I64 } -[[map(2)]]-> List I64
# ^^^ { f1 : I64 -[[f(1)]]-> I64 } -[[map(2)]]-> List I64
map { f1: f }