Browse Source

VB marks lambdas as [SpecialName]

pull/2749/head
Daniel Grunwald 3 years ago
parent
commit
f02fc5c50e
  1. 3
      ICSharpCode.Decompiler.Tests/TestCases/VBPretty/Issue2192.cs

3
ICSharpCode.Decompiler.Tests/TestCases/VBPretty/Issue2192.cs

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Runtime.CompilerServices;
public class Issue2192
{
@ -7,6 +8,6 @@ public class Issue2192 @@ -7,6 +8,6 @@ public class Issue2192
{
string[] source = new string[3] { "abc", "defgh", "ijklm" };
string text = "test";
Console.WriteLine(source.Count((string w) => w.Length > text.Length));
Console.WriteLine(source.Count([SpecialName] (string w) => w.Length > text.Length));
}
}
Loading…
Cancel
Save