Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Medium
-
Resolution: Duplicate
-
Component/s: Compiler
-
Labels:None
Description
The following code results in an error, but should probably compile just fine:
final class C { static func foo() -> Self { return C() // error: Cannot convert return expression of type 'C' to return type 'Self' } private init() {} }