diff options
Diffstat (limited to 'testsuite/fail_compilation/assign_deep_const_pointer.elna')
| -rw-r--r-- | testsuite/fail_compilation/assign_deep_const_pointer.elna | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/assign_deep_const_pointer.elna b/testsuite/fail_compilation/assign_deep_const_pointer.elna new file mode 100644 index 0000000..7ed3840 --- /dev/null +++ b/testsuite/fail_compilation/assign_deep_const_pointer.elna @@ -0,0 +1,9 @@ +proc f() +var + p: ^^const Int + q: ^^Int +begin + p := q (* @Error Expected type '\^\^const Int', but got '\^\^Int' *) +return + +end. |
