Skip to content

Crash, no log when invoking class merged with interface. #33360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Griffork opened this issue Sep 10, 2019 · 1 comment
Closed

Crash, no log when invoking class merged with interface. #33360

Griffork opened this issue Sep 10, 2019 · 1 comment
Labels
Fixed A PR has been merged for this issue

Comments

@Griffork
Copy link

TypeScript Version: 3.4.0 (vs)

Search Terms: Typescript Crash

Code

class Tester {
    constructor(one, two, three) {
        console.log(one, two, three);
    }
}

interface More implements Tester {

}

class More implements More {
    thing = string;
}

var args = [1,2, 3];
function () {
    return More.call(this, ...args);
    console.log("kahdfgag");
}

Expected behavior:
One of two outcomes: a syntax error or the code compiles.
Actual behavior:
tsc.exe returns -1 with no error message.
Playground Link: http://www.typescriptlang.org/play/#code/MYGwhgzhAEAqCmEAu8BO0DeAoavrAHsA7ZVAV2CQNQApj4AaaJAdwKaQAtV54BKTDjzDCJAiHgA6EAQDmdIo2ZsO3XnwDcQ3AF8serAEsiKVADMwweNACy1a4YC2ABwmP4JmAmRpB+rFigkDB2PNBOrvDunrb2gsJcxrLQALzQpElaBgBuYOh5sjBpANoAjAwATEwAzAC6WmZkRJSGxNA0AtjCPEhkqESxPJLAYCAgNIkQTJIzBRCa2vjEEOJSMvIARADWYJwAJmayYLIbCzpAA

Related Issues:
May possibly be a symptom of this: #33295

@RyanCavanaugh
Copy link
Member

In 3.5 this errors:

a.ts:16:10 - error TS1003: Identifier expected.

16 function () {
            ~


Found 1 error.

@RyanCavanaugh RyanCavanaugh added the Fixed A PR has been merged for this issue label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants