Mercurial > projects > dstress
view nocompile/b/bug_tree_inline_1902_B.d @ 1571:b6eb7f46f42c
[Issue 1813] static function parametrized with alias used with delegate throws an internal compiler error.
<llucax@gmail.com>
2008-02-01
http://d.puremagic.com/issues/show_bug.cgi?id=1813
author | thomask |
---|---|
date | Thu, 21 Feb 2008 13:39:51 +0000 |
parents | |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <llucax@gmail.com> // @date@ 2008-02-01 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1813 // @desc@ [Issue 1813] static function parametrized with alias used with delegate throws an internal compiler error. // __DSTRESS_ELINE__ 28 module dstress.nocompile.b.bug_tree_inline_1902_B; template thunk(alias fn){ static void thunk(int* arg){ fn(arg); } } int main(){ int x = 1; void inner(int* arg){ if(!(arg !is &x)){ assert(0); } } thunk!(inner)(&x); return 0; }