Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tools/illink/test/ILLink.Tasks.Tests/Mock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public MockDriver CreateDriver ()

public static string[] OptimizationNames {
get {
var field = typeof (ILLink).GetField ("_optimizationNames", BindingFlags.NonPublic | BindingFlags.Static);
return (string[]) field.GetValue (null);
var fieldInfo = typeof (ILLink).GetField ("_optimizationNames", BindingFlags.NonPublic | BindingFlags.Static);
return (string[]) fieldInfo.GetValue (null);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ static void TestIfElse (bool decision)
private class SimpleType
{
[Kept]
public static int field;
public static int fieldKept;

[Kept]
public int memberKept {
[Kept]
get { return field; }
get { return fieldKept; }
[Kept]
set { field = value; }
set { fieldKept = value; }
}

[Kept]
Expand Down Expand Up @@ -508,4 +508,4 @@ public static class PrefixLookupNestedType { }
private static class PrefixLookupPrivateNestedType { }
}
}
}
}
Loading