Skip to content

Assembly: assignment symbol can have whitespace #4185

@axic

Description

@axic

The following is accepted without warnings:

contract C {
  function f() returns (bool success) {
    assembly {
      success : = 1
    }
  }
}

I think it would make sense requiring no whitespace to be between : and =.

The same happens with stack assignments:

assembly {
  = : success
}

Metadata

Metadata

Assignees

Labels

language design :rage4:Any changes to the language, e.g. new features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions