Bug 16401 – incorrect fully qualified name in error message

Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-18T12:10:11Z
Last change time
2020-03-21T03:56:37Z
Keywords
diagnostic
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2016-08-18T12:10:11Z
% cat multisortBreak.d import std.algorithm.sorting : multiSort; bool foo(int a, int b){ return true; } void main() { int[] a = [1,2,3]; a.multiSort!((a,b) => foo, foo); } % dmd multisortBreak.d multisortBreak.d(7): Error: template multisortBreak.main.multiSort!((a, b) => foo, foo).multiSort cannot deduce function from argument types !()(int[]), candidates are: /usr/local/Cellar/dmd/2.071.2-b1/include/dlang/dmd/std/algorithm/sorting.d(790): multisortBreak.main.multiSort!((a, b) => foo, foo).multiSort(Range)(Range r) if (validPredicates!(ElementType!Range, less)) multiSort is erroneously being reported as a member of multisortBreak.main