Silver enum with associated value

public enum TestEnum: Int {
    case value1 = 1
    case value2 = 2
    case value3 = 3
}

This works in my Toffee (iOS) target but doesn’t seem to on Cooper (Android). I understand that enum functionality is different between Swift and Java - just wondering if this is supposed to work or not on Cooper.

I believe this might be a Java limitation. @ck?

How do you mean “doesn’t work”? It seems to compile just fine.

I’ll double check in the AM but it didn’t compile on my Android target - mind you, the error messages seemed out of place or missing at times.

there could of course be a bug, but I didn’t spot it from quick testing.

You’re right: it seems to work fine in a standalone project. I’ll keep digging to see where the problem lies in my current project.

1 Like