diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-28 02:39:42 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-28 02:39:42 +0200 |
| commit | 8e655a0786aec5e0215e09f2a9629c6f32e34793 (patch) | |
| tree | 0788634cf66fed9c1a1d264b5b8c30da49380559 /testsuite/fail_compilation/record_duplicate_field.elna | |
| parent | 4d4537866690a1ef3d882f5e9a6e01d8220a3650 (diff) | |
| download | elna-8e655a0786aec5e0215e09f2a9629c6f32e34793.tar.gz | |
Reject declarations shadowing imports
Diffstat (limited to 'testsuite/fail_compilation/record_duplicate_field.elna')
| -rw-r--r-- | testsuite/fail_compilation/record_duplicate_field.elna | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/record_duplicate_field.elna b/testsuite/fail_compilation/record_duplicate_field.elna new file mode 100644 index 0000000..b98f990 --- /dev/null +++ b/testsuite/fail_compilation/record_duplicate_field.elna @@ -0,0 +1,8 @@ +type + R = record + x: Int; + x: Int (* @Error Record already has a field named 'x' *) + end + +begin +end. |
