Mercurial > projects > dstress
changeset 1156:55aa092171eb
[Issue 377] New: Compiler error when using -inline only
Boris Kolar <boris.kolar@globera.com>
2006-09-27
news:bug-377-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 29 Sep 2006 08:10:43 +0000 |
parents | 484211f83bfc |
children | 51ea3725bfa8 |
files | run/i/inline_17_A.d |
diffstat | 1 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/inline_17_A.d Fri Sep 29 08:10:43 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Boris Kolar <boris.kolar@globera.com> +// @date@ 2006-09-27 +// @uri@ news:bug-377-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 377] New: Compiler error when using -inline only + +module dstress.run.i.inline_17_A; + +struct List { + void get() { + } +} + +interface Model { + List list(); +} + +Model model; + +int main(){ + (model ? model.list : List.init).get(); + + return 0; +}