You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```void main() { static assert(is(int:dchar)); int a = 1114112; dchar b = a; dchar c = 1114112;}```
On variable c it says Error: cannot implicitly convert expression 1114112 of type int to dchar. The value is above `dchar.max`, but since `is(int:dchar)` the error "cannot implicitly convert" is false.
Related: https://issues.dlang.org/show_bug.cgi?id=14627
The text was updated successfully, but these errors were encountered:
dchar is designed to contain unicode values, which are limited to the range 0x00000000 to 0x0010FFFF == 1114111, so the given literal is outside this range.
Dennis (@dkorpel) reported this on 2020-01-03T16:52:39Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=20477
CC List
Description
The text was updated successfully, but these errors were encountered: