Hi,
When access the `dynamicType` of a class inside one of its instance
methods. We should be using `self.dynamicType`. I purpose that the
dynamicType operator can be accessed without the need for the `self`.
So code like the following
class Foo {
static let SomeStaticConstantValue = 5
static func someStaticMethod() {
}
func bar() {
self.dynamicType.someStaticMethod()
print(self.dynamicType.SomeStaticConstantValue)
}
}
can be translated to
class Foo {
static let SomeStaticConstantValue = 5
static func someStaticMethod() {
}
func bar() {
dynamicType.someStaticMethod()
print(dynamicType.SomeStaticConstantValue)
}
}
Best Regards,
Mohamed Afifi
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution