Skip to content

Commit 36899f5

Browse files
committed
CLJCLR-165: Improve error message when no type-args supplied to generic method invocation
1 parent 2b87a45 commit 36899f5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Clojure/Clojure/CljCompiler/Ast/GenContext.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ public static GenContext CreateWithInternalAssembly(string assyName, bool create
102102
return ctx;
103103
}
104104

105-
public static GenContext CreateWithExternalAssembly(string sourceName, AssemblyName assemblyName, string extension, bool createDynInitHelper)
106-
{
107-
string path = Compiler.CompilePathVar.deref() as string;
108-
return new GenContext(path ?? System.IO.Directory.GetCurrentDirectory(), assemblyName, extension, createDynInitHelper, sourceName);
109-
}
105+
// Doesn't appear to be used.
106+
//public static GenContext CreateWithExternalAssembly(string sourceName, AssemblyName assemblyName, string extension, bool createDynInitHelper)
107+
//{
108+
// string path = Compiler.CompilePathVar.deref() as string;
109+
// return new GenContext(path ?? System.IO.Directory.GetCurrentDirectory(), assemblyName, extension, createDynInitHelper, sourceName);
110+
//}
110111

111112
public static GenContext CreateWithExternalAssembly(string sourceName, string assyName, string extension, bool createDynInitHelper)
112113
{

Clojure/Clojure/CljCompiler/Ast/MethodExpr.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ private void EmitForMethod(ObjExpr objx, CljILGen ilg)
121121
{
122122
if ( _method.IsGenericMethodDefinition )
123123
{
124-
EmitComplexCall(objx, ilg);
125-
return;
124+
_method = _method.MakeGenericMethod(_typeArgs.ToArray());
126125
}
127126

128127
if (!IsStaticCall)

0 commit comments

Comments
 (0)