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
425 B
28 lines
425 B
// Issue1389.Program |
|
using System; |
|
|
|
namespace Issue1389 |
|
{ |
|
public class Program |
|
{ |
|
private static object GetObject() |
|
{ |
|
throw null; |
|
} |
|
|
|
private static void UnusedResultOfIsinst() |
|
{ |
|
_ = GetObject() is TypeCode; |
|
} |
|
|
|
private static bool BoolResultOfIsinst() |
|
{ |
|
return GetObject() is TypeCode; |
|
} |
|
|
|
private static object EnumResultOfIsinst(object A_0) |
|
{ |
|
return (A_0 is TypeCode) ? A_0 : null; |
|
} |
|
} |
|
} |