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

14 lines
470 B
Plaintext
Raw Normal View History

tests/cases/compiler/invokingNonGenericMethodWithTypeArguments2.ts(5,9): error TS2347: Untyped function calls may not accept type arguments.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/invokingNonGenericMethodWithTypeArguments2.ts (1 errors) ====
class Foo {
private foo: any;
constructor() {
this.foo<string>();
~~~~~~~~~~~~~~~~~~
!!! error TS2347: Untyped function calls may not accept type arguments.
2014-07-13 01:04:16 +02:00
}
}