From d0f9b56738b06d72278b20f9bc66044f41dad7f6 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 3 Dec 2016 23:34:54 +0100 Subject: [PATCH] #250: add test case that we box as the correct type --- .../TestCases/Correctness/OverloadResolution.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs index 551fade6d..268c2a542 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/OverloadResolution.cs @@ -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()