mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-08 06:14:12 +00:00
Added test for issue 361. It is currently ignored.
This commit is contained in:
1 parent
22c5e0daaf
commit
293653e2ff
1 file changed
+23
@@ -0,0 +1,23 @@
|
||||
// ignore
|
||||
import java.util.*;
|
||||
import lombok.val;
|
||||
|
||||
public class ValAnonymousSubclassWithGenerics {
|
||||
Object object = new Object(){
|
||||
void foo() {
|
||||
val j = 1;
|
||||
}
|
||||
};
|
||||
|
||||
void bar() {
|
||||
val k = super.hashCode();
|
||||
int x = k;
|
||||
}
|
||||
|
||||
java.util.List<String> names = new java.util.ArrayList<String>() {
|
||||
public String get(int i) {
|
||||
val result = super.get(i);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user