annotate tests/mini/nested2.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@67 1 module nested2;
lindquist@67 2
lindquist@67 3 void func(ref int i)
lindquist@67 4 {
lindquist@67 5 delegate {
lindquist@67 6 assert(i == 3);
lindquist@67 7 i++;
lindquist@67 8 }();
lindquist@67 9 }
lindquist@67 10
lindquist@67 11 void main()
lindquist@67 12 {
lindquist@67 13 int i = 3;
lindquist@67 14 func(i);
lindquist@67 15 assert(i == 4);
lindquist@67 16 }