Unclear error message when annotating implements
with something else than a Name
#3297
Labels
bug - typechecker
issue with typechecker
Version Information
vyper --version
): 0.3.8+commit.7ff8f307python --version
): 3.8.0What's your issue about?
When improperly using
implements
and passing it something else than aName
as an annotation, the compiler outputs an unclear error as theUnexpectedNodeType
it tries to raise is constructed with 2 arguments instead of 1.vyper/vyper/ast/nodes.py
Lines 1404 to 1405 in 0a64906
Additionally,
UnexpectedNodeType
is an exception used to notify the user that what happened is an unhandled internal compiler error while it does not seem to be the case here.The following code outputs the given error:
implements: self.x
The text was updated successfully, but these errors were encountered: