Skip to content

Commit

Permalink
Fix for dotnet#30
Browse files Browse the repository at this point in the history
Code was comparing a pre-erasure list of arguments with a post-erasure list
  • Loading branch information
andrewjkennedy committed Jan 28, 2015
1 parent e4cf4a2 commit bf7588c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsharp/ilxgen.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@ and GenNamedLocalTyFuncCall cenv (cgbuf: CodeGenBuffer) eenv typ cloinfo tyargs

let ilContractTy = mkILBoxedTy ilContractCloTySpec.TypeRef ilContractClassTyargs

if not (ilContractMethTyargs.Length = tyargs.Length) then errorR(Error(FSComp.SR.ilIncorrectNumberOfTypeArguments(),m));
if not (ilContractMethTyargs.Length = ilTyArgs.Length) then errorR(Error(FSComp.SR.ilIncorrectNumberOfTypeArguments(),m));

// Local TyFunc are represented as a $contract type. they currently get stored in a value of type object
// Recover result (value or reference types) via unbox_any.
Expand Down

0 comments on commit bf7588c

Please sign in to comment.