Mercurial > projects > dstress
view run/d/deprecated_22_A.d @ 1007:b43bba5669d1
incorrect deprecated error
Carlos Santander <csantander619@gmail.com>
2006-05-16
news:e4fsch$i4g$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 19 May 2006 16:39:38 +0000 |
parents | |
children | 9dcac8d4e97f |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Carlos Santander <csantander619@gmail.com> // @date@ 2006-05-16 // @uri@ news:e4fsch$i4g$1@digitaldaemon.com module dstress.run.d.deprecated_22_A; int status; void baz() { status--; } deprecated alias baz foo; void foo(int i) { status += i; } int main(){ status = 90; foo(2); if(status != 92){ assert(0); } return 0; }