Skip to content

fix: added lowering mechanism to support functions with the reference to * return type#1644

Open
Angus-Bethke-Bachmann wants to merge 6 commits intomasterfrom
anbt/PRG-3601
Open

fix: added lowering mechanism to support functions with the reference to * return type#1644
Angus-Bethke-Bachmann wants to merge 6 commits intomasterfrom
anbt/PRG-3601

Conversation

@Angus-Bethke-Bachmann
Copy link
Copy Markdown
Contributor

Added:

  • A new "reference to return" lowerer that will lower functions with a return type of "reference to" into code that can be parsed by codegen

Changed:

  • Allowing functions with a "reference to" return type
  • Updated validations for existing invalid "reference to" assignment to support clearer error messages now that this is allowed by the lexer
  • Augmented codegen to support passing parameters by reference if both sides are "reference to"

Testing:

  • Added codegen unit test to verify the generated code for the lowered code
  • Added lit tests to verify the correct outcome for functions with a return type of "reference to"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant