Bug 20265 – [REG2.088] Spurious deprecation message with Nullable!bool and -unittest
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P5
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-03T12:10:03Z
Last change time
2020-03-21T03:56:35Z
Keywords
diagnostic
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2019-10-03T12:10:03Z
////// test.d //////
import std.typecons;
Nullable!bool b;
////////////////////
$ dmd -o- -unittest test.d
.../phobos/std/range/primitives.d(174): Deprecation: function std.typecons.Nullable!string.Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
Comment #1 by siudej — 2019-10-24T17:27:53Z
`pragma(msg, typeof(Nullable!int.init));` also causes this warning. So other phobos functions are problematic, like `std.json.parseJSON`.
Comment #2 by b2.temp — 2019-11-03T12:52:47Z
*** This issue has been marked as a duplicate of issue 20238 ***
Comment #3 by b2.temp — 2019-11-03T12:53:44Z
*** This issue has been marked as a duplicate of issue 20328 ***