I\'ve got a simple scenario in which I have a parent class, Person, which defines a property called \"name\" and includes a \"didSet\" observer...
class Pers
I was able to work around this in my case by casting to the base class:
(employee as Person).name = "Sally"
This still appears to do the proper dispatch to the subclass. For instance:
class Person {
var name: String {
return "person"
}
}
class Employee: Person {
override var name: String {
return "employee"
}
}
let bob = Person()
let alice = Employee()
println((alice as Person).name) // prints "employee"