[Issue 9855] Type comparison does not work properly with subtyping

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 29 07:39:05 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=9855

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #1 from hsteoh at quickfur.ath.cx ---
git HEAD may have regressed:
------
$ dmd test.d
test.d(12): Error: no [] operator overload for type Tuple!int
test.d(12):        while evaluating pragma(msg, (Tuple!int)[0])
test.d(13): Error: static assert  (is(Tuple!int[0] == int)) is false
$
------

Note the error on line 12, which is the pragma(msg) line.

--


More information about the Digitalmars-d-bugs mailing list