Mercurial > projects > dstress
annotate run/o/overload_27_C.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | e2141455b0e4 |
children |
rev | line source |
---|---|
1188
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
2 // $Date$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
3 // $Author$ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
4 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
5 // @author@ Frank Benoit <benoit@tionex.de> |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-09 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1188
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=412 |
1188
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 412] New: overloaded function resolution with null parameter |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
9 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
10 module dstress.o.overload_27_C; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
11 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
12 typedef char[] T; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
13 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
14 void foo(char[] a, char[] b){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
15 assert(0); |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
16 } |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
17 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
18 void foo(char[] c, T d){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
19 } |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
20 |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
21 int main(){ |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
22 foo(null, cast(T)""); |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
23 return 0; |
e2141455b0e4
[Issue 412] New: overloaded function resolution with null parameter
thomask
parents:
diff
changeset
|
24 } |