Bug 24183 – getSymbolsByUDA does no longer work on templatized functions

Status
NEW
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-10-11T01:44:39Z
Last change time
2024-12-01T16:41:55Z
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: phobos#10534 →

Comments

Comment #0 by b2.temp — 2023-10-11T01:44:39Z
The following code ```d struct operator { string op; } @operator("∪") auto un(T,U)(T t, U u) { } string translate(string s) { import std.traits; alias funcs = getSymbolsByUDA!(mixin(__MODULE__), operator); static assert (funcs.length == 1); return ""; } void main() { mixin(" 1 ∪ 2 ".translate()); } ``` used to work but now compilation fails with: > /tmp/temp_7FBF1B293B70.d:14:5: Error: static assert: `0LU == 1LU` is false
Comment #1 by robert.schadek — 2024-12-01T16:41:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10534 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB