Skip to content

Conversation

Keno
Copy link
Member

@Keno Keno commented Dec 31, 2022

We already had effect modeling for _typevar, which TypeVar should just defer to. Add a simple model for UnionAll as well, though in the future we can add the Vararg case also.

@Keno Keno requested a review from aviatesk December 31, 2022 18:58
We already had effect modeling for `_typevar`, which `TypeVar` should
just defer to. Add a simple model for `UnionAll` as well, though
in the future we can add the Vararg case also.
canconst = false
else
return Any
return CallMeta(Any, Effects(EFFECTS_TOTAL; nothrow), NoCallInfo())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return CallMeta(Any, Effects(EFFECTS_TOTAL; nothrow), NoCallInfo())
return CallMeta(Any, EFFECTS_THROWS, NoCallInfo())

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one I think in theory could be proven nothrow, even if we don't model the rt.

@Keno Keno merged commit 7a561bd into master Jan 2, 2023
@Keno Keno deleted the kf/tueffects branch January 2, 2023 11:18
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.

2 participants