# HG changeset patch # User Anders Johnsen # Date 1214062157 -7200 # Node ID d5b33ee318d4083934e7306109b83ba3f8a8e353 # Parent c3b24e7e8cf866b1f9628d2758f1b2a330880d4d New protection test diff -r c3b24e7e8cf8 -r d5b33ee318d4 tests/parser/public_2.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/parser/public_2.d Sat Jun 21 17:29:17 2008 +0200 @@ -0,0 +1,15 @@ +//fail + +struct A +{ + private int b; + public int c; +} + + +int main() +{ + A a; + a.b = 4; + a.c = 5; // should fail +}