[Issue 8213] Incorrect error message with pointer to ubyte[] and front

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 23 03:23:02 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8213



--- Comment #2 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-04-23 14:22:59 MSD ---
The error gives the correct type now:
---
main.d(12): Error: template std.array.front does not match any function
template declaration. Candidates are:
<phobos path>\std\array.d(584):        std.array.front(T)(T[] a) if
(!isNarrowString!(T[]) && !is(T[] == void[]))
<phobos path>\std\array.d(605):        std.array.front(T)(T[] a) if
(isNarrowString!(T[]))
<phobos path>\std\array.d(584): Error: template std.array.front cannot deduce
template function from argument types !()(ubyte[]*)
main.d(21): Error: template instance main.S!(ubyte[]) error instantiating
main.d(22): Error: not a property s.front
---

-- 
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