diff options
author | Vitek Karas <vitek.karas@microsoft.com> | 2021-09-08 12:13:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 12:13:57 +0300 |
commit | a9888c29d40a725caa89473fee383afb4a2edcd9 (patch) | |
tree | 8eb3fee103120b793c18f7188579841108568a1b /test/Mono.Linker.Tests.Cases | |
parent | 43fb979a719c5c5b6e83469ee5e36fb725c21e2c (diff) |
Workaround NRE in SweepStep (#2264)
Basically a workaround for #2260. This simply goes back to using the `Resolve` method and avoid the cache for now.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Inheritance.AbstractClasses/NoKeptCtor/OverrideRemoval/OverrideOfAbstractIsKeptNonEmpty.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.AbstractClasses/NoKeptCtor/OverrideRemoval/OverrideOfAbstractIsKeptNonEmpty.cs b/test/Mono.Linker.Tests.Cases/Inheritance.AbstractClasses/NoKeptCtor/OverrideRemoval/OverrideOfAbstractIsKeptNonEmpty.cs index 593465da5..f4dea2347 100644 --- a/test/Mono.Linker.Tests.Cases/Inheritance.AbstractClasses/NoKeptCtor/OverrideRemoval/OverrideOfAbstractIsKeptNonEmpty.cs +++ b/test/Mono.Linker.Tests.Cases/Inheritance.AbstractClasses/NoKeptCtor/OverrideRemoval/OverrideOfAbstractIsKeptNonEmpty.cs @@ -15,9 +15,7 @@ namespace Mono.Linker.Tests.Cases.Inheritance.AbstractClasses.NoKeptCtor.Overrid [KeptAssembly ("library.dll")] [KeptAssembly ("librarywithnonempty.dll")] - // Uncomment after this bug is fixed - // https://github.com/mono/linker/issues/2260 - //[RemovedTypeInAssembly ("library.dll", typeof (Dependencies.OverrideOfAbstractIsKeptNonEmpty_UnusedType))] + [RemovedTypeInAssembly ("library.dll", typeof (Dependencies.OverrideOfAbstractIsKeptNonEmpty_UnusedType))] public class OverrideOfAbstractIsKeptNonEmpty { @@ -28,10 +26,6 @@ namespace Mono.Linker.Tests.Cases.Inheritance.AbstractClasses.NoKeptCtor.Overrid Dependencies.OverrideOfAbstractIsKeptNonEmpty_BaseType c = HelperToMarkLibraryAndRequireItsBase (); c.Method (); - - // Remove after this bug is fixed - // https://github.com/mono/linker/issues/2260 - new Dependencies.OverrideOfAbstractIsKeptNonEmpty_UnusedType (); } [Kept] |