Skip to content

string literals should accept unicode characters before 0.7.0 #784

@OmarTawfik

Description

@OmarTawfik

The following string literal is legal until 0.7.0. Afterwards, it became disallowed after the introduction of UnicodeStringLiteral:

contract Test {
    event Bar(string y);

    function foo() public {
        emit Bar("Fireworks 🎆");
    }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions