aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/class-constructor-array-args-error
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 06:58:13 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 06:58:13 +0000
commitc372c08dc940db58f1da9cadeb64b4cb3c837704 (patch)
tree70636fd3a485eaf16fb7f442c294ac066c76e1a1 /tests/iii/class-constructor-array-args-error
parent74b6d06711afd3efbbc47436f1491900994313f3 (diff)
fix(classes): preserve method-only heap objects and document NEW
Allocate at least one byte for method-only classes so their heap addresses remain usable through pointers. Complete constructor diagnostics, field-order and exception coverage, document construction and rebinding, and highlight NEW. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/iii/class-constructor-array-args-error')
-rw-r--r--tests/iii/class-constructor-array-args-error/case.json8
-rw-r--r--tests/iii/class-constructor-array-args-error/program.cps5
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/iii/class-constructor-array-args-error/case.json b/tests/iii/class-constructor-array-args-error/case.json
new file mode 100644
index 0000000..6677de3
--- /dev/null
+++ b/tests/iii/class-constructor-array-args-error/case.json
@@ -0,0 +1,8 @@
+{
+ "errors": [
+ {
+ "reason": "Unexpected token",
+ "line": 5
+ }
+ ]
+}
diff --git a/tests/iii/class-constructor-array-args-error/program.cps b/tests/iii/class-constructor-array-args-error/program.cps
new file mode 100644
index 0000000..d3c7369
--- /dev/null
+++ b/tests/iii/class-constructor-array-args-error/program.cps
@@ -0,0 +1,5 @@
+CLASS Box
+ PROCEDURE NEW(Number : INTEGER)
+ ENDPROCEDURE
+ENDCLASS
+DECLARE Items : ARRAY[1:2] OF Box(1)