11 lines
310 B
Plaintext
11 lines
310 B
Plaintext
|
==== tests/cases/compiler/invokingNonGenericMethodWithTypeArguments2.ts (1 errors) ====
|
||
|
class Foo {
|
||
|
private foo: any;
|
||
|
|
||
|
constructor() {
|
||
|
this.foo<string>();
|
||
|
~~~~~~~~~~~~~~~~~~
|
||
|
!!! Untyped function calls may not accept type arguments.
|
||
|
}
|
||
|
}
|
||
|
|