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 f6cea7c commit 72635a9
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 72635a9

Please sign in to comment.