-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specifically
Milestone
Description
// @ts-check
/**
* @typedef Foo
* @property foo {() => string}
*/
/**
* @implements {Foo}
*/
class C1 {
foo = () => {
return 10;
}
}
/**
* @implements {Foo}
*/
class C2 {
foo() {
return 10;
}
}Expected: At least an error on C1
Actual: Neither of these error
brendankenny, Klaster1, niedzielski, JoelEinbinder, hybrist and 28 more
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specifically