mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
412 B
29 lines
412 B
using System; |
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
{ |
|
internal class Issue3965 |
|
{ |
|
private static void M(int x) |
|
{ |
|
} |
|
|
|
private static void Use(Action<int> action) |
|
{ |
|
} |
|
|
|
public static void DiscardedMethodGroupConversion() |
|
{ |
|
#if EXPECTED_OUTPUT |
|
new Action<int>(M); |
|
#else |
|
_ = (Action<int>)M; |
|
#endif |
|
} |
|
|
|
public static void UsedMethodGroupConversion() |
|
{ |
|
Use(M); |
|
} |
|
} |
|
}
|
|
|