|
|
@ -68,6 +68,18 @@ class TestClass |
|
|
|
{ |
|
|
|
{ |
|
|
|
void TestMethod (int a, int b = 1, int c = 1) |
|
|
|
void TestMethod (int a, int b = 1, int c = 1) |
|
|
|
{ } |
|
|
|
{ } |
|
|
|
|
|
|
|
}";
|
|
|
|
|
|
|
|
Test<MethodOverloadHidesOptionalParameterIssue> (input, 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
|
|
|
public void TestNoIssue_Generics () |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var input = @"
|
|
|
|
|
|
|
|
class TestClass |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
void TestMethod (object obj) { } |
|
|
|
|
|
|
|
void TestMethod<T> (object obj, int arg = 0) { } |
|
|
|
}";
|
|
|
|
}";
|
|
|
|
Test<MethodOverloadHidesOptionalParameterIssue> (input, 0); |
|
|
|
Test<MethodOverloadHidesOptionalParameterIssue> (input, 0); |
|
|
|
} |
|
|
|
} |
|
|
|