Mercurial > projects > ldc
annotate test/bug2.d @ 185:89e21eeaf4c4 trunk
[svn r201] Fixed: return statement could fail codegen with type mismatch for classes, added cast.
author | lindquist |
---|---|
date | Wed, 07 May 2008 22:27:45 +0200 |
parents | 92408a3a2bac |
children |
rev | line source |
---|---|
27
92408a3a2bac
[svn r31] * Fixed returning through hidden pointer was unable to report back the return value
lindquist
parents:
diff
changeset
|
1 module bug2; |
92408a3a2bac
[svn r31] * Fixed returning through hidden pointer was unable to report back the return value
lindquist
parents:
diff
changeset
|
2 struct Vec { Vec barf() { return Vec(); } } |
92408a3a2bac
[svn r31] * Fixed returning through hidden pointer was unable to report back the return value
lindquist
parents:
diff
changeset
|
3 class test { this(Vec whee) { } } |
92408a3a2bac
[svn r31] * Fixed returning through hidden pointer was unable to report back the return value
lindquist
parents:
diff
changeset
|
4 void main() { Vec whee; new test(whee.barf()); } |