TypeScript/tests/baselines/reference/interfaceMayNotBeExtendedWitACall.js
Cyrus Najmabadi a1e18fc22b Introduce a new HeritageClauseElment type.
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.
2015-03-31 12:29:02 -07:00

10 lines
159 B
TypeScript

//// [interfaceMayNotBeExtendedWitACall.ts]
interface color {}
interface blue extends color() { // error
}
//// [interfaceMayNotBeExtendedWitACall.js]