mirror of https://github.com/tbklang/tlang.git
🐞 Bugfix: Ensure that typed functions contain a return statement #143
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 13 minutes 7 seconds
Due Date
deavmi
13 minutes 7 seconds
Dependencies
No dependencies set.
Reference: tlang/tlang#143
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is this?
Ensure that a
ReturnStmt
is present in a function declared with a type in the parser, if not throw an error.wantsBody
istrue
, elseefunc
extern statement (which have no body) will cause it to error as no body is presentBugfix: Ensure that typed functions contain a return statementto 🐞 Bugfix: Ensure that typed functions contain a return statementLooks like all good for now, wanna first finish universal coercion
Actually finna merge this now
Merging...
CI/CD has an error where expected due to type mis-match (will be fixed when
feature/universal_coercion
is merged)deavmi referenced this issue2023-07-16 17:32:12 +01:00
deavmi referenced this issue2023-07-16 17:34:23 +01:00