We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077e9f6 commit 45b3bf4Copy full SHA for 45b3bf4
src/compiler.ts
@@ -7941,6 +7941,16 @@ export class Compiler extends DiagnosticEmitter {
7941
}
7942
case ElementKind.FUNCTION_PROTOTYPE: {
7943
let functionPrototype = <FunctionPrototype>target;
7944
+ let typeParameterNodes = functionPrototype.typeParameterNodes;
7945
+
7946
+ if(typeParameterNodes && typeParameterNodes.length != 0) {
7947
+ this.error(
7948
+ DiagnosticCode.Expected_0_arguments_but_got_1,
7949
+ expression.range, typeParameterNodes.length.toString(), "0"
7950
+ );
7951
+ return module.unreachable();
7952
+ }
7953
7954
let functionInstance = this.resolver.resolveFunction(
7955
functionPrototype,
7956
null,
0 commit comments