Skip to content

compiler can emit empty error message hint #4313

@cyberthirst

Description

@cyberthirst

Version Information

  • vyper Version (output of vyper --version): 039d369

What's your issue about?

@external
def foo() -> uint256:
    d: DynArray[uint256, 10] = [d]
    return d[0]
Error compiling: tests/custom/test4.vy
vyper.exceptions.UndeclaredDefinition: 'd' has not been declared.

  contract "tests/custom/test4.vy:3", function "foo", line 3:32 
       2 def foo() -> uint256:
  ---> 3     d: DynArray[uint256, 10] = [d]
  ---------------------------------------^
       4     return d[0]

  (hint: )

see (hint: )

How can it be fixed?

Fill this in if you know how to fix it.

Metadata

Metadata

Assignees

Labels

bug - UXa bug related to UX

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions