mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Merge pull request #7450 from roc-lang/ayaz/bugfix-ts
Minor simplifications to typechecker
This commit is contained in:
commit
99dfc5529d
9 changed files with 232 additions and 302 deletions
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue