mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
java create class from usage: disable for expected array type or expected super class while enum/record can't have any
GitOrigin-RevId: 042aed924d9fc35e1ca86ae8660a7a75fe45bd25
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b1e8b301ee
commit
48a0c3c03c
@@ -0,0 +1,8 @@
|
||||
// "Create enum 'Foo'" "true"
|
||||
public interface Test {
|
||||
default void foo(java.util.List<? extends Test> l){
|
||||
if (l.get(0) instanceof Foo) {}
|
||||
}
|
||||
}
|
||||
|
||||
public enum Foo {}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create enum 'Foo'" "true"
|
||||
public interface Test {
|
||||
default void foo(java.util.List<? extends Test> l){
|
||||
if (l.get(0) instanceof Fo<caret>o) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create enum 'Foo'" "false"
|
||||
public class Test {
|
||||
void foo(Test s){
|
||||
if (s instanceof Fo<caret>o) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user