[jvm-lang] java: add more Create Constructor tests

This commit is contained in:
Daniil Ovchinnikov
2017-11-09 18:45:42 +03:00
parent 44d62f3347
commit 243e4d078e
3 changed files with 32 additions and 0 deletions

View File

@@ -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;
}
};
}
}

View File

@@ -0,0 +1,9 @@
// "Create constructor" "false"
class Test {
enum E {}
void usage() {
new E(<caret>"a");
}
}

View File

@@ -0,0 +1,9 @@
// "Create constructor" "false"
class Test {
interface I {}
void usage() {
new I(<caret>"a") {};
}
}