mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
13 lines
191 B
D
13 lines
191 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag12380.d(12): Error: cannot implicitly convert expression `E.a` of type `E` to `void*`
|
|
---
|
|
*/
|
|
|
|
enum E { a, b, }
|
|
|
|
void main()
|
|
{
|
|
void* a = E.init;
|
|
}
|