[lworld] javac allows Value Type generic parameters with var
James Thompson
thompsonjamesrichard at gmail.com
Tue Aug 14 18:13:58 UTC 2018
Local type inference with the use of var masks at the source level generic
type parameters, therefore it is trivial to create a new generic collection
of Value types.
e.g. var list = List.of(Point.create(1, 1), Point.create(2, 2));
where Point is a Value type. This will compile without
*-XDallowGenericsOverValues*
More information about the valhalla-dev
mailing list