Mercurial > projects > dstress
view nocompile/case_02.d @ 285:68f8150db4a5
function as case condition
Rev <Rev_member@pathlink.com>
2005-02-13
news:cunl9i$15r2$1@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/2966
author | thomask |
---|---|
date | Sun, 13 Feb 2005 21:15:50 +0000 |
parents | |
children | 1f6cf5ccfbc9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Rev <Rev_member@pathlink.com> // @date@ 2005-02-13 // @uri@ news:cunl9i$15r2$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2966 module dstress.nocompile.case_02; char[] getString(){ return "i"; } void test(){ char[] hold; switch(hold) { case getString(): } }