annotate nocompile/bug_e2ir_299_A.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
351
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
1 // $HeadURL$
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
2 // $Date$
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
3 // $Author$
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
4
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
5 // @author@ h3r3tic <foo@bar.baz>
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
6 // @date@ 2004-12-24
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
7 // @uri@ news:cqi3v3$r2o$1@digitaldaemon.com
1485
774e02c900da changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2601
351
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
9
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
10 // function literals cannot call nested functions
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
11
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
12 // __DSTRESS_ELINE__ 19
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
13
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
14 module dstress.nocompile.bug_e2ir_299_A;
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
15
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
16 int main(){
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
17 void foo() {}
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
18 void function() bar = function void() {
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
19 foo();
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
20 };
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
21 return 0;
9cf29a72bdaf delegate/function - nested functions
thomask
parents:
diff changeset
22 }