close
Skip to content

compiler freezes in an "edge case" #1669

Closed

Description

This code never compiles, no error, just frozen tsc (even in playground):

class B {
    static staticMethod<U>():C<U> {
        return B.method();
    }
}
interface A<U> {
    strangeThing(): A<Array<U>>;
}
interface C<U> extends A<U> {
}
class D {
    private a: C<Array<string>>;
    constructor() {
        this.a = B.staticMethod();
    }
}

Activity

  1. RyanCavanaugh commented on Jan 14, 2015

    @RyanCavanaugh
    Member

    Looks to be fixed in the master branch. Completes quickly and issues the error

    a.ts(3,18): error TS2339: Property 'method' does not exist on type 'typeof B'.

  2. locked and limited conversation to collaborators on Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions