summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail351.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail351.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/fail351.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail351.d b/gcc/testsuite/gdc.test/fail_compilation/fail351.d
index 04f21b2e9be..1762ec06a43 100644
--- a/gcc/testsuite/gdc.test/fail_compilation/fail351.d
+++ b/gcc/testsuite/gdc.test/fail_compilation/fail351.d
@@ -1,16 +1,16 @@
/*
TEST_OUTPUT:
---
-fail_compilation/fail351.d(14): Error: cast(uint)this.num[index] is not an lvalue
+fail_compilation/fail351.d(14): Error: expression `this.num[index]` of type `immutable(uint)` is not implicitly convertible to return type `ref uint`
---
*/
-// 2780
+// https://issues.dlang.org/show_bug.cgi?id=2780
struct Immutable {
immutable uint[2] num;
- ref uint opIndex(size_t index) immutable {
+ ref uint opIndex(size_t index) immutable return {
return num[index];
}
}