Bug 16135 – missing std.format import in std.algorithm.comparison

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-06-07T12:26:00Z
Last change time
2017-01-16T23:26:22Z
Keywords
trivial
Assigned to
nobody
Creator
schuetzm

Comments

Comment #0 by schuetzm — 2016-06-07T12:26:14Z
import std.algorithm : castSwitch; interface I { } class B : I { } void main() { Object[] arr = [new B(), null]; castSwitch!( (I i) => "derived from I", (B b) => "class B", ); } Results in: /home/marc/d/phobos/std/algorithm/comparison.d(275): Error: no property 'format' for type 'string' Apparently, an import is missing there. Discovered by user on the forum: https://forum.dlang.org/post/[email protected]
Comment #1 by greeenify — 2016-12-30T08:02:50Z
Comment #2 by github-bugzilla — 2017-01-03T14:44:18Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d1b59d3f2e4879c1379e2e42080f4cd0155717e4 Fix Issue 16135 - missing std.format import in std.algorithm.comparison https://github.com/dlang/phobos/commit/7904edd50449bb0a7bba9d62a3106030d560c7ce Merge pull request #5006 from wilzbach/fix-16135 Fix Issue 16135 - missing std.format import in std.algorithm.comparison
Comment #3 by github-bugzilla — 2017-01-07T03:03:26Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d1b59d3f2e4879c1379e2e42080f4cd0155717e4 Fix Issue 16135 - missing std.format import in std.algorithm.comparison https://github.com/dlang/phobos/commit/7904edd50449bb0a7bba9d62a3106030d560c7ce Merge pull request #5006 from wilzbach/fix-16135
Comment #4 by github-bugzilla — 2017-01-16T23:26:22Z
Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d1b59d3f2e4879c1379e2e42080f4cd0155717e4 Fix Issue 16135 - missing std.format import in std.algorithm.comparison https://github.com/dlang/phobos/commit/7904edd50449bb0a7bba9d62a3106030d560c7ce Merge pull request #5006 from wilzbach/fix-16135