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.
28 lines
388 B
28 lines
388 B
using System; |
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
{ |
|
internal class Issue3751 |
|
{ |
|
private static bool Cond; |
|
|
|
private static T Infer<T>(Func<T> factory) |
|
{ |
|
return factory(); |
|
} |
|
|
|
public object Trigger() |
|
{ |
|
return Infer(delegate { |
|
if (Cond) |
|
{ |
|
Console.WriteLine(); |
|
return null; |
|
} |
|
return new { |
|
Value = 1 |
|
}; |
|
}); |
|
} |
|
} |
|
}
|
|
|