-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: ~2.0.0
Code
interface FuncType {
(key: any): Object;
}
class A {
prop: FuncType;
}
class B extends A {
prop() {}
}
Expected behavior:
I want to define a method with a FuncType
, and implement it in extended class.
Actual behavior:
Got an error
Class 'A' defines instance member property 'prop', but extended class 'B' defines it as instance member function.
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug