mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
[jvm-lang] java: add more Create Constructor tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Create constructor" "false"
|
||||
public class Test {
|
||||
|
||||
@interface A {}
|
||||
|
||||
void usage() {
|
||||
new A(<caret>"a") {
|
||||
@Override
|
||||
public Class<? extends java.lang.annotation.Annotation> annotationType() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create constructor" "false"
|
||||
class Test {
|
||||
|
||||
enum E {}
|
||||
|
||||
void usage() {
|
||||
new E(<caret>"a");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create constructor" "false"
|
||||
class Test {
|
||||
|
||||
interface I {}
|
||||
|
||||
void usage() {
|
||||
new I(<caret>"a") {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user