mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
12 lines
219 B
D
12 lines
219 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail19897.d(12): Error: cannot implicitly convert expression `a.x` of type `const(char[0])` to `const(char)`
|
|
---
|
|
*/
|
|
struct S
|
|
{
|
|
char[0] x;
|
|
}
|
|
const a = S('a');
|
|
const char c = a.x;
|