diff --git a/compiler/test/fail_compilation/ctor_attr.d b/compiler/test/fail_compilation/ctor_attr.d index da5a30cddf..2138af64bb 100644 --- a/compiler/test/fail_compilation/ctor_attr.d +++ b/compiler/test/fail_compilation/ctor_attr.d @@ -1,18 +1,20 @@ /* TEST_OUTPUT: --- -fail_compilation/ctor_attr.d(24): Error: none of the overloads of `this` are callable using argument types `(int)` -fail_compilation/ctor_attr.d(15): Candidates are: `ctor_attr.S.this(int x) const` -fail_compilation/ctor_attr.d(16): `ctor_attr.S.this(string x)` -fail_compilation/ctor_attr.d(26): Error: none of the overloads of `foo` are callable using a mutable object -fail_compilation/ctor_attr.d(18): Candidates are: `ctor_attr.S.foo(int x) immutable` -fail_compilation/ctor_attr.d(19): `ctor_attr.S.foo(string x)` +fail_compilation/ctor_attr.d(26): Error: none of the overloads of `this` are callable using argument types `(int)` +fail_compilation/ctor_attr.d(16): Candidates are: `ctor_attr.S.this(int x) const` +fail_compilation/ctor_attr.d(18): `ctor_attr.S.this(string x)` +fail_compilation/ctor_attr.d(17): `this()(int x) shared` +fail_compilation/ctor_attr.d(28): Error: none of the overloads of `foo` are callable using a mutable object +fail_compilation/ctor_attr.d(20): Candidates are: `ctor_attr.S.foo(int x) immutable` +fail_compilation/ctor_attr.d(21): `ctor_attr.S.foo(string x)` --- */ struct S { this(int x) const {} + this()(int x) shared {} this(string x) {} void foo(int x) immutable {} diff --git a/compiler/test/fail_compilation/fail7424d.d b/compiler/test/fail_compilation/fail7424d.d index 38f47ba091..920956bf2f 100644 --- a/compiler/test/fail_compilation/fail7424d.d +++ b/compiler/test/fail_compilation/fail7424d.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail7424d.d(10): Error: template `this.g()()` has no value +fail_compilation/fail7424d.d(10): Error: template `this.g()() immutable` has no value --- */ struct S7424d diff --git a/compiler/test/fail_compilation/fail7424e.d b/compiler/test/fail_compilation/fail7424e.d index e92b4693d5..ddf9d1a89b 100644 --- a/compiler/test/fail_compilation/fail7424e.d +++ b/compiler/test/fail_compilation/fail7424e.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail7424e.d(10): Error: template `this.g()()` has no value +fail_compilation/fail7424e.d(10): Error: template `this.g()() immutable` has no value --- */ struct S7424e diff --git a/compiler/test/fail_compilation/fail7424f.d b/compiler/test/fail_compilation/fail7424f.d index 1af14f83d7..2f7f8f3615 100644 --- a/compiler/test/fail_compilation/fail7424f.d +++ b/compiler/test/fail_compilation/fail7424f.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail7424f.d(10): Error: template `this.g()()` has no value +fail_compilation/fail7424f.d(10): Error: template `this.g()() shared` has no value --- */ struct S7424f diff --git a/compiler/test/fail_compilation/fail7424i.d b/compiler/test/fail_compilation/fail7424i.d index 6352166add..4e922d6f5b 100644 --- a/compiler/test/fail_compilation/fail7424i.d +++ b/compiler/test/fail_compilation/fail7424i.d @@ -1,7 +1,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail7424i.d(10): Error: template `this.g()()` has no value +fail_compilation/fail7424i.d(10): Error: template `this.g()() immutable` has no value --- */ struct S7424g