Skip to content

Check arg kinds in optional.or and .orValue impl#1276

Open
jnthntatum wants to merge 1 commit intogoogle:masterfrom
jnthntatum:optionals-parseonly
Open

Check arg kinds in optional.or and .orValue impl#1276
jnthntatum wants to merge 1 commit intogoogle:masterfrom
jnthntatum:optionals-parseonly

Conversation

@jnthntatum
Copy link
Collaborator

Update the eval behavior when the lhs is not an optional:

  • propagate if the lhs is already an error/unknown
  • otherwise return no such overload
  • rhs is not evaluated

Update the interperter steps to follow the behavior for the
conditional ?: operator when the lhs is not an optional:
- propagate existing error or unknown,
- no such overload otherwise
- do not evaluate rhs
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