I have the following codes:
class ILProperty {
var value: T?
init(_ value: T) {
self.value = value
}
}
typealias ILStringProper
As ganzogo mentioned it seems to be working fine with the latest Swift (3.0). Also, why do you declare a separate class to assign to the typealias
? I've tried this in a Playground and it seems ok:
class ILProperty {
var value: T?
init(_ value: T) {
self.value = value
}
}
typealias ILStringProperty = ILProperty
let x = ILStringProperty("X")