[Issue 5491] filter cannot be used in a function?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 26 10:55:21 PST 2011


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



--- Comment #3 from Timofei Bolshakov <tbolsh at gmail.com> 2011-01-26 10:53:14 PST ---
I am sorry for the line 

> UsbDevType.gateway; } )( devices ) );
>     foreach( UsbDevice dev; gateways ) writeln( dev.toString() );
> }

It is not needed there - cut and paste error. But it will remove only 2 last
errors, "filter" related errors will still be there:

> tbolshakov at owner-laptop:~/projects/D$ dmd -unittest bugs/tbolsh_d2_bug4.d 
> bugs/tbolsh_d2_bug4.d(18): Error: function tbolsh_d2_bug4.associate_devices
> (UsbDevice[] devices) is not callable using argument types
> (Filter!(__dgliteral1,UsbDevice[]))
> bugs/tbolsh_d2_bug4.d(19): Error: cannot implicitly convert expression
> (filter(devices)) of type Filter!(__dgliteral1,UsbDevice[]) to UsbDevice[]

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