[Swift-devel] Re: [Bug 84] switch does not work with variable parameter
Ben Clifford
benc at hawaga.org.uk
Fri Jul 27 22:42:38 CDT 2007
On Fri, 27 Jul 2007, bugzilla-daemon at mcs.anl.gov wrote:
> ------- Comment #1 from hategan at mcs.anl.gov 2007-07-27 20:09 -------
> Comparison broken? Can you add a test case in SVN?
yes, it turns out - I hadn't thought about that being a cause. The below
fails (i.e. writes 'false' to cmp3.out). I have a bunch of tests related
to this. Will commit them tomorrow when I'm more awake.
type messagefile {}
(messagefile t) greeting(boolean b) {
app {
echo b stdout=@filename(t);
}
}
messagefile outfile <"cmp3.out">;
int i = 2;
boolean r = i==2;
outfile = greeting(r);
--
More information about the Swift-devel
mailing list