You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fail_compilation/test20489.d(23): Error: function `pure nothrow @nogc @safe int test20489.D1.f(int delegate(int) pure nothrow @nogc @safe body)` does not override any function, did you mean to override `pure nothrow @nogc @safe int test20489.B1.f(scope int delegate(int) pure nothrow @nogc @safe)`?
5
-
fail_compilation/test20489.d(23): Did you intend to override:
6
-
fail_compilation/test20489.d(23): `pure nothrow @nogc @safe int test20489.B1.f(scope int delegate(int) pure nothrow @nogc @safe)`
7
-
fail_compilation/test20489.d(23): Parameter 1 is missing `scope`
8
-
fail_compilation/test20489.d(32): Error: function `test20489.D2.nonExistentMethod` does not override any function
9
-
fail_compilation/test20489.d(41): Error: function `test20489.D3.finalMethod` cannot override `final` function `test20489.B3.finalMethod`
10
-
fail_compilation/test20489.d(41): Error: function `void test20489.D3.finalMethod()` does not override any function, did you mean to override `void test20489.B3.finalMethod()`?
11
-
fail_compilation/test20489.d(41): Did you intend to override:
fail_compilation/test20489.d(20): Error: function `pure nothrow @nogc @safe int test20489.D.f(int delegate(int) pure nothrow @nogc @safe body)` does not override any function, did you mean to override `pure nothrow @nogc @safe int test20489.B.f(scope int delegate(int) pure nothrow @nogc @safe)`?
6
+
fail_compilation/test20489.d(20): Did you intend to override:
7
+
fail_compilation/test20489.d(20): `pure nothrow @nogc @safe int test20489.B.f(scope int delegate(int) pure nothrow @nogc @safe)`
8
+
fail_compilation/test20489.d(20): Parameter 1 is missing `scope`
13
9
---
14
10
*/
15
11
12
+
// Test case for https://issues.dlang.org/show_bug.cgi?id=20489
13
+
// Improved error message for override mismatches
16
14
17
-
// Case 1: Signature mismatch (parameter attributes)
0 commit comments