mirror of
https://github.com/dlang/dmd.git
synced 2025-05-03 00:20:18 +03:00
16 lines
532 B
D
16 lines
532 B
D
enum __c_wchar_t : wchar;
|
|
|
|
alias wchar_t = __c_wchar_t;
|
|
|
|
immutable(wchar_t)[] a = "somestring";
|
|
const(wchar_t)[] b = "somestring";
|
|
immutable(wchar_t)* c = "somestring";
|
|
const(wchar_t)* d = "somestring";
|
|
|
|
string foo = "foo";
|
|
|
|
static assert(!__traits(compiles, { immutable(wchar_t)[] bar = foo; } ));
|
|
static assert(!__traits(compiles, { const(wchar_t)[] bar = foo; } ));
|
|
static assert(!__traits(compiles, { immutable(wchar_t)* bar = foo; } ));
|
|
static assert(!__traits(compiles, { const(wchar_t)* bar = foo; } ));
|
|
|