mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
CreateTypeParameter: don't suggest fix inside type parameter IDEA-195832
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
// "Create type parameter 'U'" "true"
|
||||
|
||||
public class Helpers {
|
||||
|
||||
interface RunAlgebra<A, R> {
|
||||
|
||||
}
|
||||
|
||||
interface ReturnAlgebra<R, O> {
|
||||
|
||||
}
|
||||
|
||||
interface SomeAlgebra<R> {
|
||||
|
||||
}
|
||||
|
||||
interface AlgebraImplementation extends ReturnAlgebra<String, Integer>, SomeAlgebra<String> {
|
||||
|
||||
}
|
||||
|
||||
public static <R> void giveMeAlgebraImplementation(RunAlgebra<AlgebraImplementation, R> algebra) {
|
||||
|
||||
}
|
||||
|
||||
public static <R, U, A extends ReturnAlgebra<R, U>> RunAlgebra<A, U> aReturn() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <R, U, A extends ReturnAlgebra<R, U>> RunAlgebra<A, R> aReturn(String overload) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <R,
|
||||
A extends ReturnAlgebra<R, U>,
|
||||
AI extends SomeAlgebra<R>, U> RunAlgebra<A, R> consumeReturn(A returnAlgebra) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// "Create type parameter 'U'" "true"
|
||||
|
||||
public class Helpers {
|
||||
|
||||
interface RunAlgebra<A, R> {
|
||||
|
||||
}
|
||||
|
||||
interface ReturnAlgebra<R, O> {
|
||||
|
||||
}
|
||||
|
||||
interface SomeAlgebra<R> {
|
||||
|
||||
}
|
||||
|
||||
interface AlgebraImplementation extends ReturnAlgebra<String, Integer>, SomeAlgebra<String> {
|
||||
|
||||
}
|
||||
|
||||
public static <R> void giveMeAlgebraImplementation(RunAlgebra<AlgebraImplementation, R> algebra) {
|
||||
|
||||
}
|
||||
|
||||
public static <R, U, A extends ReturnAlgebra<R, U>> RunAlgebra<A, U> aReturn() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <R, U, A extends ReturnAlgebra<R, U>> RunAlgebra<A, R> aReturn(String overload) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <R,
|
||||
A extends ReturnAlgebra<R, U<caret>>,
|
||||
AI extends SomeAlgebra<R>> RunAlgebra<A, R> consumeReturn(A returnAlgebra) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user