digitalmars.D.bugs - [Issue 21764] New: checkaction=context doesn't work for empty tuples
- d-bugmail puremagic.com (31/31) Mar 24 2021 https://issues.dlang.org/show_bug.cgi?id=21764
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 puremagic.com Reporter: moonlightsentinel 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)` --
Mar 24 2021