deprecated enum and to!string warnings

Vladimirs Nordholm v at vladde.net
Mon Nov 19 19:47:44 UTC 2018


The following code produces 28 deprecation warnings at build time:

     import std.conv : to;

     enum Foo {
         bar,
         deprecated baz
     }

     void main() {
         to!string(Foo.bar);
     }

Why is that?

https://run.dlang.io/is/AdUscN


More information about the Digitalmars-d mailing list