comparison test/bug8.d @ 40:8b0e809563df trunk

[svn r44] Lots of bug fixes. New array literal support New array ~= operator support (for single element) New with statement support More...
author lindquist
date Fri, 19 Oct 2007 07:43:21 +0200
parents
children
comparison
equal deleted inserted replaced
39:fd5e8bbfcb25 40:8b0e809563df
1 module bug8;
2
3 void main()
4 {
5 s = newS();
6 }
7
8 S* s;
9
10 struct S
11 {
12 int i;
13 }
14
15 S* newS()
16 {
17 auto tmp = new S;
18 tmp.i = 4;
19 return tmp;
20 }
21