summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail302.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail302.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/fail302.d4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail302.d b/gcc/testsuite/gdc.test/fail_compilation/fail302.d
index 02c6b242c59..d1133b0eef0 100644
--- a/gcc/testsuite/gdc.test/fail_compilation/fail302.d
+++ b/gcc/testsuite/gdc.test/fail_compilation/fail302.d
@@ -1,7 +1,9 @@
/*
TEST_OUTPUT:
---
-fail_compilation/fail302.d(21): Error: cannot implicitly convert expression `1` of type `int` to `Bar`
+fail_compilation/fail302.d(23): Error: cannot implicitly convert expression `1` of type `int` to `Bar`
+fail_compilation/fail302.d(23): `bar = 1` is the first assignment of `bar` therefore it represents its initialization
+fail_compilation/fail302.d(23): `opAssign` methods are not used for initialization, but for subsequent assignments
---
*/