diff options
author | Andy Gocke <angocke@microsoft.com> | 2022-01-25 19:59:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 19:59:20 +0300 |
commit | 5fca8b890c194c837d21513e43a361a5f5b357a6 (patch) | |
tree | 92e5862fab210e22d08df94a9189c1cc2bad7b9f /test/Mono.Linker.Tests.Cases | |
parent | 2999a6a9dd884d554be18d3c86a4a9db4b61e156 (diff) |
Add analyzer bootstrap phase (#2540)
The existing integration test build will now also use the live analyzer built first.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/RequiresCapability/BasicRequires.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/BasicRequires.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/BasicRequires.cs index 5e890cb0f..972e28c49 100644 --- a/test/Mono.Linker.Tests.Cases/RequiresCapability/BasicRequires.cs +++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/BasicRequires.cs @@ -5,6 +5,8 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Runtime.InteropServices; @@ -190,9 +192,13 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability class TestType { } + static T MakeNew<T> () where T : new() => new T (); + static T MakeNew2<T> () where T : new() => MakeNew<T> (); + public static void Test () { GenericTypeWithStaticMethodViaLdftn (); + MakeNew2<TestType> (); } } } |