← Back to index
|
Original Bugzilla link
Bug 21391 – deprecated doesn't work for mixin templates
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-11-13T22:10:59Z
Last change time
2024-12-13T19:12:44Z
Keywords
diagnostic
Assigned to
No Owner
Creator
MrSmith33
Moved to GitHub: dmd#19822 →
Comments
Comment #0
by mrsmith33 — 2020-11-13T22:10:59Z
Minimal test case (1 deprecation expected): ``` void main(string[] args) {} mixin Test!("hello", 42); deprecated mixin template Test(Args...){ int b; } ``` Complex test case. No deprecation messages occur (2 expected) ``` // Check for local and static template mixins void main(string[] args) { mixin Test!("hello", 42); mixin Test!(Foo()); // deprecated expected mixin Test!(50.0, 42); a = b + c + .a + .b + .c; } mixin Test!("hello", 42); mixin Test!(Foo()); // deprecated expected mixin Test!(50.0, 42); struct Foo {} // 3 overloads, so any ordering works mixin template Test(double num, Args...){ int a; } deprecated mixin template Test(Args...){ int b; } mixin template Test(string str, Args...){ int c; } ``` No deprecation messages are issued by the compiler here.
Comment #1
by robert.schadek — 2024-12-13T19:12:44Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19822
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB