blob: ef19a56192061e92dda87a0355d80c1a55b78966 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
TEST_OUTPUT:
---
fail_compilation/test17284.d(1): Error: no identifier for declarator `TEST_OUTPUT`
fail_compilation/test17284.d(1): Error: declaration expected, not `:`
fail_compilation/test17284.d(12): Error: unmatched closing brace
---
*/
// https://issues.dlang.org/show_bug.cgi?id=17284
class C { }
union U { C c; int i; }
@safe void func(T)(T t)
{
t.c = new C;
}
pragma(msg, typeof(func!U));
|