Mercurial > projects > dstress
view run/s/static_37_F.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | f4ba482f309c |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Carlos Santander <csantander619@gmail.com> // @date@ 2006-07-09 // @uri@ news:e8sdrv$2k9c$1@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=660 // @desc@ name resolution and static function module dstress.run.s.static_37_F; class A{ static int foo (int i){ return i + 1; } } class B{ int foo (int x){ return A.foo(x) * 2; } } int main(){ B b = new B(); if(b.foo(2) != 6){ assert(0); } return 0; }