Fix locally scoped constant array #644

Merged
SimonCropp merged 5 commits from possibleFixForLocallyScopedConstantArray into master 2020-01-31 11:18:24 -06:00
SimonCropp commented 2020-01-30 00:34:06 -06:00 (Migrated from github.com)

@jbevain seems to me an array should be treated the same as a object type for this context?

@jbevain seems to me an array should be treated the same as a object type for this context?
SimonCropp commented 2020-01-30 00:34:46 -06:00 (Migrated from github.com)

put in a diff PR since i am confident the fail test verifies the scenario. but am uncertain about this as a fix

put in a diff PR since i am confident the fail test verifies the scenario. but am uncertain about this as a fix
jbevain (Migrated from github.com) requested changes 2020-01-30 11:37:14 -06:00
@ -210,0 +211,4 @@
public void LocallyScopedConstantArray ()
{
TestModule ("LocallyScopedConstantArray.dll", module => {
Assert.IsTrue (module.HasDebugHeader);
jbevain (Migrated from github.com) commented 2020-01-30 11:37:05 -06:00

We'd need to assert that the constant is indeed null in there.

We'd need to assert that the constant is indeed null in there.
jbevain commented 2020-01-30 11:37:38 -06:00 (Migrated from github.com)

Thanks for the PR. The fix is good!

Thanks for the PR. The fix is good!
SimonCropp (Migrated from github.com) reviewed 2020-01-30 16:27:34 -06:00
@ -210,0 +211,4 @@
public void LocallyScopedConstantArray ()
{
TestModule ("LocallyScopedConstantArray.dll", module => {
Assert.IsTrue (module.HasDebugHeader);
SimonCropp (Migrated from github.com) commented 2020-01-30 16:27:34 -06:00

done

done
jbevain (Migrated from github.com) approved these changes 2020-01-31 10:58:07 -06:00
jbevain commented 2020-01-31 11:19:00 -06:00 (Migrated from github.com)

Thanks for the PR!

Thanks for the PR!
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil!644
No description provided.