IDEA-54387 (type annotations in introduce parameter)

This commit is contained in:
Roman Shevchenko
2014-03-11 17:39:19 +01:00
parent 6bf6d119d5
commit f05869508f
4 changed files with 40 additions and 7 deletions
@@ -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();
}
}