Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uFE41EgmSXEP4axJ
8 lines
241 B
Java
8 lines
241 B
Java
// JEP 507 is a preview in 25: compiling without --enable-preview must fail.
|
|
public class PreviewWithoutFlag {
|
|
public static void main(String[] args) {
|
|
long v = 42L;
|
|
if (v instanceof int i) System.out.println(i);
|
|
}
|
|
}
|