comparison tests/parser/public_2.d @ 127:d5b33ee318d4

New protection test
author Anders Johnsen <skabet@gmail.com>
date Sat, 21 Jun 2008 17:29:17 +0200
parents
children
comparison
equal deleted inserted replaced
126:c3b24e7e8cf8 127:d5b33ee318d4
1 //fail
2
3 struct A
4 {
5 private int b;
6 public int c;
7 }
8
9
10 int main()
11 {
12 A a;
13 a.b = 4;
14 a.c = 5; // should fail
15 }