mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 20:15:59 +00:00
Fixed issues with val in inner classes, and re-enabled a test that caught it that we ignored earlier.
This commit is contained in:
1 parent
a6170f5298
commit
e5860edabe
8 files changed
+111
-9
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import java.util.*;
|
||||
public class ValAnonymousSubclassWithGenerics {
|
||||
Object object = new Object(){
|
||||
void foo() {
|
||||
final int j = 1;
|
||||
}
|
||||
};
|
||||
void bar() {
|
||||
final int k = super.hashCode();
|
||||
int x = k;
|
||||
}
|
||||
java.util.List<String> names = new java.util.ArrayList<String>(){
|
||||
public String get(int i) {
|
||||
final java.lang.String result = super.get(i);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user