Silver enum array issue


(ndelic) #1

This compiles in Xcode, but not in Silver/Elements 9.2 .NET class library:

enum TestEnum {
    case value1, value2
}

let allowedValues: [TestEnum] = [.value1, .value2]

The compiler says: Type mismatch, expected “TestEnum”. It compiles if I change the second line to:

let allowedValues: [TestEnum] = [TestEnum.value1, TestEnum.value2]


(RemObjects) #2

Thanks, logged as bugs://78524


(RemObjects) #3

bugs://78524 got closed with status fixed.