comparison tests/code/public_1.d @ 128:7264c61088c4

Moved a test
author Anders Johnsen <skabet@gmail.com>
date Sat, 21 Jun 2008 17:32:27 +0200
parents tests/parser/public_2.d@d5b33ee318d4
children
comparison
equal deleted inserted replaced
127:d5b33ee318d4 128:7264c61088c4
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; // should fail
14 a.c = 5;
15 }