Mercurial > projects > dstress
view run/o/opModule_01_A.d @ 1009:7d45295ced76
Can't refer to global scope after a cast
<lio@lunesu.com>
2006-05-18
news:bug-145-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Fri, 19 May 2006 16:40:22 +0000 |
parents | |
children | 81222734adf3 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <lio@lunesu.com> // @date@ 2006-05-18 // @uri@ news:bug-145-3@http.d.puremagic.com/bugzilla/ module dstress.run.o.opModule_01_A; float foo(float f){ return f + 1.0f; } int main(){ if(cast(int) .foo(2.0f) != 3){ assert(0); } return 0; }