mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

* Fix Issue 11455 - Overriding template methods should raise a compile error * Change to deprecation; tweak messages
18 lines
391 B
D
18 lines
391 B
D
/*
|
|
REQUIRED_ARGS: -de
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/template_function_oop.d(16): Deprecation: a function template is not virtual so cannot be marked `override`
|
|
fail_compilation/template_function_oop.d(17): Deprecation: a function template is not virtual so cannot be marked `abstract`
|
|
---
|
|
*/
|
|
class C
|
|
{
|
|
void f();
|
|
}
|
|
|
|
class D : C
|
|
{
|
|
override void f()() {}
|
|
abstract void g()();
|
|
}
|