45 lines
2.3 KiB
Text
45 lines
2.3 KiB
Text
|
==== tests/cases/compiler/genericRecursiveImplicitConstructorErrors3.ts (7 errors) ====
|
||
|
module TypeScript {
|
||
|
export class MemberName <A,B,C>{
|
||
|
static create<A,B,C>(arg1: any, arg2?: any, arg3?: any): MemberName {
|
||
|
~~~~~~~~~~
|
||
|
!!! Generic type 'MemberName<A, B, C>' requires 3 type argument(s).
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module TypeScript {
|
||
|
export class PullSymbol <A,B,C>{
|
||
|
public type: PullTypeSymbol = null;
|
||
|
~~~~~~~~~~~~~~
|
||
|
!!! Generic type 'PullTypeSymbol<A, B, C>' requires 3 type argument(s).
|
||
|
}
|
||
|
export class PullTypeSymbol <A,B,C>extends PullSymbol {
|
||
|
~~~~~~~~~~
|
||
|
!!! Generic type 'PullSymbol<A, B, C>' requires 3 type argument(s).
|
||
|
private _elementType: PullTypeSymbol = null;
|
||
|
~~~~~~~~~~~~~~
|
||
|
!!! Generic type 'PullTypeSymbol<A, B, C>' requires 3 type argument(s).
|
||
|
public toString<A,B,C>(scopeSymbol?: PullSymbol, useConstraintInName?: boolean) {
|
||
|
~~~~~~~~~~
|
||
|
!!! Generic type 'PullSymbol<A, B, C>' requires 3 type argument(s).
|
||
|
var s = this.getScopedNameEx(scopeSymbol, useConstraintInName).toString();
|
||
|
return s;
|
||
|
}
|
||
|
public getScopedNameEx<A,B,C>(scopeSymbol?: PullSymbol, useConstraintInName?: boolean, getPrettyTypeName?: boolean, getTypeParamMarkerInfo?: boolean) {
|
||
|
~~~~~~~~~~
|
||
|
!!! Generic type 'PullSymbol<A, B, C>' requires 3 type argument(s).
|
||
|
if (this.isArray()) {
|
||
|
~~~~~~~
|
||
|
!!! Property 'isArray' does not exist on type 'PullTypeSymbol<A, B, C>'.
|
||
|
var elementMemberName = this._elementType ?
|
||
|
(this._elementType.isArray() || this._elementType.isNamedTypeSymbol() ?
|
||
|
this._elementType.getScopedNameEx(scopeSymbol, false, getPrettyTypeName, getTypeParamMarkerInfo) :
|
||
|
this._elementType.getMemberTypeNameEx(false, scopeSymbol, getPrettyTypeName)) : 1
|
||
|
return MemberName.create(elementMemberName, "", "[]");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|