Add hole expression #924

Merged
ghallak merged 9 commits from ghallak/391 into master 2023-01-12 22:23:36 +09:00
ghallak commented 2023-01-08 16:50:13 +09:00 (Migrated from gitlab.com)

Closes: #391

Closes: #391
zxq9 commented 2023-01-09 00:28:48 +09:00 (Migrated from gitlab.com)

Created by: radrow

This doesn't seem right. Hole is an expression, not a type. Holes should have normal types as anything else and an error should be reported in infer_expr.

*Created by: radrow* This doesn't seem right. Hole is an expression, not a type. Holes should have normal types as anything else and an error should be reported in infer_expr.
zxq9 commented 2023-01-09 00:30:09 +09:00 (Migrated from gitlab.com)

Created by: radrow

Doc pls

*Created by: radrow* Doc pls
zxq9 commented 2023-01-10 22:03:38 +09:00 (Migrated from gitlab.com)

Created by: radrow

A hole expression found in the example above will generate the error `` Found a hole of type `(int) => int` ``. This says that the compiler expects a function from `int` to `int` in place of the `???` placeholder.
*Created by: radrow* ```suggestion:-0+0 A hole expression found in the example above will generate the error `` Found a hole of type `(int) => int` ``. This says that the compiler expects a function from `int` to `int` in place of the `???` placeholder. ```
zxq9 commented 2023-01-12 18:51:33 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

LGTM

*Created by: hanssv* **Review:** Approved LGTM
zxq9 commented 2023-01-12 19:52:14 +09:00 (Migrated from gitlab.com)

Created by: radrow

Review: Approved

*Created by: radrow* **Review:** Approved
zxq9 commented 2023-01-12 22:23:36 +09:00 (Migrated from gitlab.com)

Merged by: ghallak at 2023-01-12 13:23:36 UTC

*Merged by: ghallak at 2023-01-12 13:23:36 UTC*
Sign in to join this conversation.
No description provided.