Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/extendSealedClass/beforeSubInterfaceWithParents.java
Tagir Valeev 2c12f7c579 [java-intentions] ExtendSealedClassFix: ModCommand
IntentionActionWithChoice UI replaced with multi-step ModCommand, as we don't have IntentionActionWithChoice in ModCommand API, and it's unclear whether it's a good idea, and how to implement it better

GitOrigin-RevId: a702bc672b56f4c51dd7e7b01cf5ee0ded457805
2023-07-21 11:17:34 +00:00

8 lines
224 B
Java

// "Make 'Child' extend 'Parent'|->non-sealed" "true-preview"
sealed interface Parent permits Child<caret>, Foo {}
interface OtherParent {}
non-sealed interface Foo extends Parent {}
interface Child extends OtherParent {}