a1e18fc22b
This type represents the expression+type arguments you can get in a class or interface heritage clause section. For class-implements clauses, or interface-extends clauses, these expressions can only be identifiers or dotted names. For class extends clauses, these could be any expressions in the future. However, for now, we only support identifiers and dotted names.
9 lines
159 B
TypeScript
9 lines
159 B
TypeScript
//// [interfaceMayNotBeExtendedWitACall.ts]
|
|
interface color {}
|
|
|
|
interface blue extends color() { // error
|
|
|
|
}
|
|
|
|
|
|
//// [interfaceMayNotBeExtendedWitACall.js]
|