Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMethodFromUsage/beforePolyIntersection.java
Tagir Valeev 5ab495db61 [java-intention] Intersection type test for IDEA-314907
GitOrigin-RevId: 90316415e2fff0e298ee2026f1e21f278c896c0d
2023-03-21 17:24:02 +00:00

9 lines
204 B
Java

// "Create method 'newMethod'" "true-preview"
import java.util.Objects;
class X {
<T extends Serializable & Cloneable> void intersection() {
T t = Objects.requireNonNull(<caret>newMethod());
}
}