We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a helpful error message when trying to use a union of two eqsorts as a type.
This should error:
from typing import TypeAlias, Union from egglog import * class A(Expr): def __init__(self) -> None: ... class B(Expr): def __init__(self) -> None: ... CustomLike: TypeAlias = Union[A, B] class C(Expr): def __init__(self, some_input: CustomLike) -> None: ... a = A() b = B() C(a) # ok C(b) # not ok... :(
https://egraphs.zulipchat.com/#narrow/channel/375765-egg.2Fegglog/topic/multiple.20sort.20inputs.20.28via.20Union.29.3F/near/484334683
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a helpful error message when trying to use a union of two eqsorts as a type.
This should error:
https://egraphs.zulipchat.com/#narrow/channel/375765-egg.2Fegglog/topic/multiple.20sort.20inputs.20.28via.20Union.29.3F/near/484334683
The text was updated successfully, but these errors were encountered: