[Issue 24759] Order-dependent failure to create an overload set with template function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 10 19:18:24 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24759

--- Comment #1 from Max Samukha <maxsamukha at gmail.com> ---
Another manifestation of likely the same bug:

module a;

import std.range.primitives;

ref T front(T)(T* range) => range[0];
alias front = std.range.primitives.front;

void main()
{
}
----

a.d(6): Deprecation: package std.range is not accessible here, perhaps add
'static import std.range;'
a.d(6): Deprecation: module std.range.primitives is not accessible here,
perhaps add 'static import std.range.primitives;'
a.d(6): Deprecation: package std.range is not accessible here, perhaps add
'static import std.range;'
a.d(6): Deprecation: module std.range.primitives is not accessible here,
perhaps add 'static import std.range.primitives;'

--


More information about the Digitalmars-d-bugs mailing list