TypeScript/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.errors.txt

47 lines
2.5 KiB
Plaintext

==== tests/cases/compiler/genericRecursiveImplicitConstructorErrors3.ts (8 errors) ====
module TypeScript {
export class MemberName <A,B,C>{
static create<A,B,C>(arg1: any, arg2?: any, arg3?: any): MemberName {
~~~~~~~~~~
!!! A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
~~~~~~~~~~
!!! 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, "", "[]");
}
}
}
}