From 0cf54b4f77ccf8376341950b02ceb7c1d1268ed7 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 30 Oct 2026 14:31:07 +0000 Subject: refactor(strings): construct string values implicitly from raw literals Keep double-quoted literals and text constants as C_STRING values. Use marked STRING constructors for text and CHAR conversion, preserving string operations and I/O through the existing class machinery. Co-Authored-By: Claude Opus 5.5 --- tests/iii/implicit-string-opt-in/case.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/iii/implicit-string-opt-in/case.json (limited to 'tests/iii/implicit-string-opt-in/case.json') diff --git a/tests/iii/implicit-string-opt-in/case.json b/tests/iii/implicit-string-opt-in/case.json new file mode 100644 index 0000000..8fae19d --- /dev/null +++ b/tests/iii/implicit-string-opt-in/case.json @@ -0,0 +1,15 @@ +{ + "compiler_args": [ + "-no-std" + ], + "errors": [ + { + "line": 13, + "reason": "Cannot implicitly convert C_STRING to STRING" + }, + { + "line": 14, + "reason": "STRING requires an IMPLICIT constructor NEW" + } + ] +} -- cgit v1.3.1-4-g156e