File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # E049: binary number literal has no digits
2+
3+ Decimal number literals start with ` 0b ` and require at least one digit. It is an
4+ error to write ` 0b ` with no following digits:
5+
6+ let mask = 0b
7+
8+ To fix this error, write digits after ` 0b ` :
9+
10+ let mask = 0b1000;
11+
12+ Alternatively, remove ` b ` to create a ` 0 ` number literal.
Original file line number Diff line number Diff line change 1+ # E050: hex number literal has no digits
2+
3+ Hexadecimal (hex) number literals start with ` 0x ` and require at least one
4+ digit. It is an error to write ` 0x ` with no following digits:
5+
6+ let mask = 0x
7+
8+ To fix this error, write digits after ` 0x ` :
9+
10+ let mask = 0xff00;
11+
12+ Alternatively, remove ` x ` to create a ` 0 ` number literal.
Original file line number Diff line number Diff line change 1+ # E051: octal number literal has no digits
2+
3+ Octal number literals start with ` 0o ` and require at least one digit. It is an
4+ error to write ` 0o ` with no following digits:
5+
6+ let mask = 0o
7+
8+ To fix this error, write digits after ` 0o ` :
9+
10+ let mask = 0o700;
11+
12+ Alternatively, remove ` o ` to create a ` 0 ` number literal.
You can’t perform that action at this time.
0 commit comments