mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
test for using 'val' on an expression that involved lombok-generated code.
This commit is contained in:
1 parent
8850798a04
commit
6e25b00ace
3 files changed
+42
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import lombok.Getter;
|
||||
import lombok.val;
|
||||
|
||||
class MixGetterVal {
|
||||
@Getter private int x;
|
||||
|
||||
public void m(int z) {}
|
||||
public void test() {
|
||||
val y = x;
|
||||
m(y);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user