[Issue 20748] New: Deprecation for assert using shared type and checkaction=context
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 19 10:00:49 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20748
Issue ID: 20748
Summary: Deprecation for assert using shared type and
checkaction=context
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
The following code issues a deprecation when compiled with
-checkaction=context:
=======================================
void main()
{
shared ulong a = 11;
assert(a == 11);
}
=======================================
dmd -checkaction=context test.d
druntime\import\core\internal\dassert.d(86): Deprecation: argument v for format
specification "%u" must be int, not shared(const(ulong))
=======================================
miniFormat did not consider shared types but this was masked by the previous
rewriting of _d_assert_fail
--
More information about the Digitalmars-d-bugs
mailing list