[Issue 21764] New: checkaction=context doesn't work for empty tuples

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 25 01:36:15 UTC 2021


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

          Issue ID: 21764
           Summary: checkaction=context doesn't work for empty tuples
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

-----------------------------------------------
struct S {}

void main()
{
    S s;
    assert(s.tupleof != s.tupleof);
}
-----------------------------------------------

checkaction.d(6): Error: template `core.internal.dassert._d_assert_fail` cannot
deduce function from argument types `!()(string)`, candidates are:
./generated/linux/release/64/../../../../../druntime/import/core/internal/dassert.d(38):
       `_d_assert_fail(A)(scope const string op, auto ref scope const A a)`
./generated/linux/release/64/../../../../../druntime/import/core/internal/dassert.d(59):
       `_d_assert_fail(A...)`
./generated/linux/release/64/../../../../../druntime/import/core/internal/dassert.d(76):
       `_d_assert_fail(A, B)(scope const string comp, auto ref scope const A a,
auto ref scope const B b)`

--


More information about the Digitalmars-d-bugs mailing list