[Issue 18472] betterC: cannot use format at compile time.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 20 13:54:16 UTC 2018


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

--- Comment #1 from Mike Franklin <slavo5150 at yahoo.com> ---
The test doesn't compile with 2.078.3. 2.078.3 does not include the TypeInfo
check, so at most this is a diagnostic regression.  

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

/dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d(405): Error:
static assert  "Cannot put a const(char)[] into a Appender!string."
/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(1172):        instantiated
from here: put!(Appender!string, const(char)[])
/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(473):        instantiated
from here: writeUpToNextSpec!(Appender!string)
/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(5831):        instantiated
from here: formattedWrite!(Appender!string, char, string, string)
onlineapp.d(5):        instantiated from here: format!(char, string, string)

Do you have a test that will demonstrate a successful build prior to the
TypeInfo check introduced in 2.079?

--


More information about the Digitalmars-d-bugs mailing list