mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 23:29:01 +03:00
Merge pull request #7041 from SSoulaimane/fix17141
Ternary operator no longer promotes characters to integers merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
This commit is contained in:
commit
ae7803260b
1 changed files with 2 additions and 2 deletions
|
@ -1274,8 +1274,8 @@ pure @safe nothrow unittest
|
|||
auto s3 = "string three".byCodeUnit;
|
||||
static assert(is(typeof(s3.front) == immutable char));
|
||||
auto r2 = s1.chain(s3);
|
||||
// type is promoted
|
||||
static assert(is(typeof(r2.front) == uint));
|
||||
//// chaining ranges of mixed character types gives `dchar`
|
||||
//static assert(is(typeof(r2.front) == dchar));
|
||||
|
||||
// use byChar on character ranges to correctly convert them to UTF-8
|
||||
auto r3 = s1.byChar.chain(s3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue