blob: d9e7cb289ea33b9c2e921c2d36835c8b7b8ec08d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
class ExtensionMethodSuppress {
public void test() {
Test.staticMethod();
Test test = new Test();
Extensions.instanceMethod(test);
Extensions.staticMethod(test);
}
}
class ExtensionMethodKeep {
public void test() {
Test.staticMethod();
Test test = new Test();
test.instanceMethod();
test.staticMethod();
}
}
class Test {
public static void staticMethod() {
}
public void instanceMethod() {
}
}
class Extensions {
public static void staticMethod(Test test) {
}
public static void instanceMethod(Test test) {
}
}
|