class A { class func foo(x: A) { print(x) } } class B: A { override class func foo(x: A?) { print(x) } }
class A { class func foo(x: A) { print(x) } } class B: A { override class func foo(x: B) { print(x) } }