Enum parameters in closures not compiling


(Paul Stevenson) #1

so in swift I can write a closure
{
blah in …
}

where blah is an enum. In our case, enum: Int32 to be safe…
works fine in swift.
when I compile it in Fire, it thinks blah is an Int32…

but then if I have

if blah == enum.somecase

that gets a compiler error in Fire …

any suggestions?


(marc hoffman) #2

that’s rather thin for a testcase. can you give me a more concrete (non-)compiling example?


(Paul Stevenson) #3

how did I know you were going to say that…
let me see how I go…