test/tools/javac/diags/examples/SecondaryBoundMustBeMarkerIntf.java

changeset 1511
c7c41a044e7c
parent 1436
f6f1fd261f57
equal deleted inserted replaced
1510:7873d37f5b37 1511:c7c41a044e7c
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.err.prob.found.req 24 // key: compiler.err.prob.found.req
25 // key: compiler.misc.secondary.bound.must.be.marker.intf 25 // key: compiler.misc.secondary.bound.must.be.marker.intf
26 // options: -XDallowIntersectionTypes
27 26
28 class SecondaryBoundMustBeMarkerInterface { 27 class SecondaryBoundMustBeMarkerInterface {
29 Runnable r = (Runnable & Comparable<?>)()->{}; 28 Runnable r = (Runnable & Comparable<?>)()->{};
30 } 29 }

mercurial