Skip to content

Commit

Permalink
make the Browser EAT lanes happy
Browse files Browse the repository at this point in the history
Add some fields to the baseline versions of some test assemblies to keep some
types that are used in the deltas from getting trimmed away
  • Loading branch information
lambdageek committed Mar 18, 2022
1 parent 7a4c892 commit 2c56d90
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ namespace System.Reflection.Metadata.ApplyUpdate.Test
{
public class AddNestedClass
{
public static Action<string> X; // make the linker happy
public static Delegate Y;
public event Action<string> Evt;
public void R () { Evt ("123"); }
public AddNestedClass()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ namespace System.Reflection.Metadata.ApplyUpdate.Test
{
public class AddNestedClass
{
public static Action<string> X; // make the linker happy
public static Delegate Y;
public event Action<string> Evt;
public void R () { Evt ("123"); }
public AddNestedClass()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ public interface IExistingInterface {
public string ItfMethod(int i);
}

public struct QExistingStruct
{
}

public enum FExistingEnum {
One, Two
}

public class ZExistingClass
{
public class PreviousNestedClass { }
public class PreviousNestedClass {
public static DateTime Now; // make the linker happy
public static ICloneable C;
public event EventHandler<string> E;
public void R() { E(this,"123"); }
}
}

[AttributeUsage(AttributeTargets.All, AllowMultiple=true, Inherited=false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ public interface IExistingInterface {
public string ItfMethod(int i);
}

public struct QExistingStruct
{
}

public enum FExistingEnum {
One, Two
}

public class ZExistingClass
{
public class PreviousNestedClass { }
public class PreviousNestedClass {
public static DateTime Now; // make the linker happy
public static ICloneable C;
public event EventHandler<string> E;
public void R() { E(this,"123"); }
}
public class NewNestedClass {};


Expand Down

0 comments on commit 2c56d90

Please sign in to comment.