Browse Source

#250: add test case that we box as the correct type

pull/728/merge
Daniel Grunwald 9 years ago
parent
commit
d0f9b56738
  1. 16
      ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs

16
ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs

@ -28,7 +28,23 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness @@ -28,7 +28,23 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
{
static void Main()
{
TestBoxing();
CallIssue180();
CallExtensionMethod();
}
static void TestBoxing()
{
Print(1);
Print((ushort)1);
}
static void Print(object obj)
{
if (obj == null)
Console.WriteLine("null");
else
Console.WriteLine("{0}: {1}", obj.GetType().Name, obj);
}
static void CallIssue180()

Loading…
Cancel
Save