Skip to content

State variables can be named public and constant #1710

@smarx

Description

@smarx

These should be treated as reserved words.

public: uint256 # BUG
constant: uint256 # BUG

@public
def __init__():
    self.public = 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Easy PickingsUsed to denote issues that should be easy to implementbugBug that shouldn't change language semantics when fixed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions