a closure called instantly with an or
block fails to compile
#21165
Labels
Bug
This tag is applied to issues which reports bugs.
or
block fails to compile
#21165
Describe the bug
Trying to inline a function with an
Option
return which is invoked immediately results in a compilation error when using anor
block.Reproduction Steps
The following code results in the described bug behavior:
Expected Behavior
I would expect this to compile without issue.
Current Behavior
Does not compile:
The following does however compiler:
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.5 e6b43a1
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: