Thread overview
[Issue 20987] incompatible types for... when opBinary "in" overloading
Jun 28, 2020
Vital
Jun 28, 2020
Stanislav Blinov
June 28, 2020
https://issues.dlang.org/show_bug.cgi?id=20987

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
         Resolution|---                         |INVALID

--- Comment #1 from moonlightsentinel@disroot.org ---
You need to use “in” on your struct, not the string array.

“box” in cs;

--
June 28, 2020
https://issues.dlang.org/show_bug.cgi?id=20987

Vital <vital.fadeev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #2 from Vital <vital.fadeev@gmail.com> ---
Oh, sorry ! Yes!

--
June 28, 2020
https://issues.dlang.org/show_bug.cgi?id=20987

Stanislav Blinov <stanislav.blinov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov@gmail.com

--- Comment #3 from Stanislav Blinov <stanislav.blinov@gmail.com> ---
...and it would be the opBinaryRight :)

--