Closed GoogleCodeExporter closed 9 years ago
Having diamond operator support for only simple inference scenarios would still
be very useful. Most usages of the operator I've seen are with classes whose
constructors do not define type arguments, and almost half of the usages are
just "new ArrayList<>()".
Original comment by cus...@google.com
on 18 Dec 2013 at 5:38
Original comment by wdi...@gmail.com
on 1 Jan 2014 at 9:06
I've added test case tests/nullness/Issue289.java and the code should now work
for simple examples.
More complex examples might still break and need more experiments.
After a few other refactorings we should re-visit diamond inference.
Please do let us know if you have specific examples that don't work.
Original comment by wdi...@gmail.com
on 2 Jan 2014 at 1:24
Original comment by Jonathan...@gmail.com
on 6 Jan 2014 at 6:53
Original issue reported on code.google.com by
cus...@google.com
on 12 Dec 2013 at 6:39