Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Old-style octal literal types are treated as decimal literal types #10101

Copy link
Copy link
@sandersn

Description

@sandersn
Issue body actions
// @target: es3
const i: 010 = 8;

Actual:

const i: 010 = 8;
      ~
      Error: Type '8' is not assignable to type '10';

Expected:

const i: 010 = 8;
         ~~~
         Error: Octal literal types must use ES2015 syntax. Use the syntax '0o10'.
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.