mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-54387 (type annotations in introduce parameter)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target(value = ElementType.TYPE_USE)
|
||||
public @interface TA { }
|
||||
|
||||
class Test {
|
||||
void m(@TA String anObject) {
|
||||
System.out.println(anObject);
|
||||
}
|
||||
|
||||
void use() {
|
||||
m("smth");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target(value = ElementType.TYPE_USE)
|
||||
public @interface TA { }
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
@TA String <caret>v = "smth";
|
||||
System.out.println(v);
|
||||
}
|
||||
|
||||
void use() {
|
||||
m();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user