// 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); } }