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

@ -15666,7 +15666,7 @@ All branches in an `if` must have the same type!
@r###"
MISSING EXCLAMATION in /code/proj/Main.roc
This is an effectful function, but its name does not indicate so:
This function is effectful, but its name does not indicate so:
10 forEach! = \l, f ->
^
@ -15703,7 +15703,7 @@ All branches in an `if` must have the same type!
@r###"
UNNECESSARY EXCLAMATION in /code/proj/Main.roc
This is a pure function, but its name suggests otherwise:
This function is pure, but its name suggests otherwise:
12 mapOk = \result, fn! ->
^^^