Files
javademos/java28-features/output/02-preview-changes-records.txt

13 lines
452 B
Plaintext

$ javac broken/RecordThis.java
exit 0
$ javac --enable-preview --release 28 broken/RecordThis.java
broken/RecordThis.java:10: error: reference to this may only appear after an explicit constructor invocation
nullCheck(label, this);
^
broken/RecordThis.java:11: error: reference to this may only appear after an explicit constructor invocation
nullCheck(edges, this);
^
2 errors
exit 1