Skip to content

Commit 9496ec1

Browse files
committed
WIP: cast prototype fn to correct type in prototype invocation
1 parent 6b6a41a commit 9496ec1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Clojure/Clojure/CljCompiler/Ast/InvokeExpr.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,10 @@ void EmitProto(RHC rhc, ObjExpr objx, GenContext context)
499499

500500
objx.EmitVar(context,v); // var
501501
ilg.EmitCall(Compiler.Method_Var_getRawRoot); // proto-fn
502+
ilg.Emit(OpCodes.Castclass, typeof(IFn));
502503

503504
ilg.Emit(OpCodes.Ldloc,targetTemp); // proto-fn, target
505+
504506
EmitArgsAndCall(1,rhc,objx,context);
505507
ilg.Emit(OpCodes.Br,endLabel);
506508

0 commit comments

Comments
 (0)