[Issue 5163] meaningless error message with front() applied to void[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 05:19:36 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5163
Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-11-05 05:18:35 PDT ---
This fixes the Phobos bug:
http://www.dsource.org/projects/phobos/changeset/2123
The error message is now:
test.d(6): Error: template std.array.front(A) if (is(typeof(A[0])) &&
!isNarrowString!(A) && !is(typeof(A[0]) : const(void))) does not match any
function template declaration
test.d(6): Error: template std.array.front(A) if (is(typeof(A[0])) &&
!isNarrowString!(A) && !is(typeof(A[0]) : const(void))) cannot deduce template
function from argument types !()(void[])
Arguably less readable, but more useful since it refers to the point of error
in user code instead of in Phobos code.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list