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