Skip to content

[6.40] [df] Lift requirement to provide explicit return type in Vary expression#22077

Open
root-project-bot wants to merge 3 commits intoroot-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22028
Open

[6.40] [df] Lift requirement to provide explicit return type in Vary expression#22077
root-project-bot wants to merge 3 commits intoroot-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22028

Conversation

@root-project-bot
Copy link
Copy Markdown

Backport of #22028, requested by @vepadulano.

The expression gets a trailing return type injected of the equivalent necessary RVec type, only in case the user is not already providing it. As long as the expression returns a sequence of characters that is a valid way to instantiate an RVec constructor, the expression will compile.

The condition that triggers the injection of the trailing return type is if the user expression is of type '{...}', which could be a potential candidate constructor for an RVec.

(cherry picked from commit c56ec4e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants