Skip to content

ILRepack doesn't work with default parameter values... well.. now it does...#1

Merged
gluck merged 1 commit into
gluck:masterfrom
damageboy:master
May 22, 2012
Merged

ILRepack doesn't work with default parameter values... well.. now it does...#1
gluck merged 1 commit into
gluck:masterfrom
damageboy:master

Conversation

@damageboy

Copy link
Copy Markdown

Currently when ILRepack is run against an assembly with default params, the default param flags are copied, but the default constant is NOT...

so when a method like:

void Foo(int x = 3)
{
  return x;
}

was processed, the resulting assembly would crash on mono and not compile on ms .NET since the constant was missing from the method definition...

this 2 line change in the MethodDefinition clone method fixes this...

gluck added a commit that referenced this pull request May 22, 2012
ILRepack doesn't work with default parameter values... well.. now it does...
@gluck gluck merged commit fc059f1 into gluck:master May 22, 2012
@gluck

gluck commented May 22, 2012

Copy link
Copy Markdown
Owner

Thanks !

timotei pushed a commit that referenced this pull request Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants