October 22, 2020 [Issue 21338] New: Move functional style code's unit tests outside scope, to actually test them. | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21338 Issue ID: 21338 Summary: Move functional style code's unit tests outside scope, to actually test them. Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: crazymonkyyy@gmail.com https://run.dlang.io/is/UxBhfw import std; void main() { writeln("Learning D is fun".split!isWhite); } This is copy and pasted from the unittests, it behaves different based on scope to the point I'm not sure "auto split(alias isTerminator, Range)(Range range)" can exist outside of std code. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply