Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Schuster <36744439+jtschuster@users.noreply.github.com>2022-02-17 20:27:56 +0300
committerGitHub <noreply@github.com>2022-02-17 20:27:56 +0300
commit08c7a14489aa9aeef8957338b2176862363b92ab (patch)
treeecba432f72446bb4c00a15116e8e96f76a5c49c6 /test/Mono.Linker.Tests.Cases
parent6e11d057a88b3fb403bfbb90317518c94e3e84a7 (diff)
Update comment for RequiresUnreferencedCode tests with lambdas (#2555)
Diffstat (limited to 'test/Mono.Linker.Tests.Cases')
-rw-r--r--test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresInCompilerGeneratedCode.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresInCompilerGeneratedCode.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresInCompilerGeneratedCode.cs
index 46f519aec..fa3828569 100644
--- a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresInCompilerGeneratedCode.cs
+++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresInCompilerGeneratedCode.cs
@@ -982,9 +982,10 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability
class SuppressInLambda
{
- // Requires doesn't propagate into lambdas
+ // Bug https://github.com/dotnet/linker/issues/2001
+ // Requires should propagate into lambdas
- // C# currently doesn't allow attributes on lambdas
+ // C# 10 allows attributes on lambdas
// - This would be useful as a workaround for the limitation as Requires could be applied to the lambda directly
// - Would be useful for testing - have to use the CompilerGeneratedCode = true trick instead