mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
extract class: leave reference parameters untouched after replacement (IDEA-106017)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
public class Extracted {
|
||||
public static <T> T foo() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
|
||||
{
|
||||
String s = true ? Extracted.<String>foo() : "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
public static <T> T foo() { return null; }
|
||||
|
||||
{
|
||||
String s = true ? Test.<String>foo() : "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user