diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-09 00:52:27 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-09 00:52:27 +0200 |
| commit | 994e6c95929ad9551901d86617e4678920f8f357 (patch) | |
| tree | d12a438aa537ea8fb680161ec945e4a7a14af1de /testsuite/fail_compilation/record_constructor_const.elna | |
| parent | ea902858825aac806cd282e6d5f02ec683a995e3 (diff) | |
| download | elna-994e6c95929ad9551901d86617e4678920f8f357.tar.gz | |
Strip away constness from literals and rvalues
Diffstat (limited to 'testsuite/fail_compilation/record_constructor_const.elna')
| -rw-r--r-- | testsuite/fail_compilation/record_constructor_const.elna | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/record_constructor_const.elna b/testsuite/fail_compilation/record_constructor_const.elna new file mode 100644 index 0000000..946105b --- /dev/null +++ b/testsuite/fail_compilation/record_constructor_const.elna @@ -0,0 +1,10 @@ +module +type + R = record + x: Int + end + +var + r := { const R; x: 1 } (* @Error Record constructor cannot have 'const' qualifier *) + +end. |
