Reported by Tobias.
The following program does not compile on lworld branch top:
public class X {
static primitive class Test139Value {
Object obj = null;
MyValueEmpty empty = MyValueEmpty.default;
}
static primitive class Test139Wrapper {
Test139Value val = Test139Value.default;
}
public MyValueEmpty test139() {
Test139Wrapper w = new Test139Wrapper();
return w.val.empty;
}
}
primitive class MyValueEmpty {}
I get:
X.java:11: error: unexpected type
return w.val.empty;
^
required: class,package
found: variable
X.java:11: error: cannot find symbol
return w.val.empty;
^
symbol: variable empty
location: class Test139Wrapper
2 errors