镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Unimplemented methods are allowed when its class merged namespace #9098

Description

TypeScript Version:

master

Code

class C {
  m(): void;
}
namespace C { }

Expected behavior:

$ node built/local/tsc.js index.ts
index.ts(2,3): error TS2391: Function implementation is missing or not immediately following the declaration.

Actual behavior:

$ node built/local/tsc.js index.ts

Activity

  1. added a commit that references this issue on Jun 11, 2016
    e86f183
  2. added a commit that references this issue on Jun 15, 2016
    97be083
  3. added a commit that references this issue on Jun 17, 2016
    5f91b3c
  4. added a commit that references this issue on Jul 11, 2016
    cfc20a9
  5. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions