-
-
Notifications
You must be signed in to change notification settings - Fork 593
/
fail10528.d
30 lines (25 loc) · 1.02 KB
/
fail10528.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
TEST_OUTPUT:
---
fail_compilation/fail10528.d(19): Error: module fail10528 variable a10528.a is private
fail_compilation/fail10528.d(20): Error: variable a10528.a is not accessible from module fail10528
fail_compilation/fail10528.d(22): Error: module fail10528 enum member a10528.b is private
fail_compilation/fail10528.d(23): Error: enum member a10528.b is not accessible from module fail10528
fail_compilation/fail10528.d(25): Error: variable a10528.S.c is not accessible from module fail10528
fail_compilation/fail10528.d(26): Error: variable a10528.S.c is not accessible from module fail10528
fail_compilation/fail10528.d(28): Error: variable a10528.C.d is not accessible from module fail10528
fail_compilation/fail10528.d(29): Error: variable a10528.C.d is not accessible from module fail10528
---
*/
import imports.a10528;
void main()
{
auto a1 = a;
auto a2 = imports.a10528.a;
auto b1 = b;
auto b2 = imports.a10528.b;
auto c1 = S.c;
with (S) auto c2 = c;
auto d1 = C.d;
with (C) auto d2 = d;
}