Details
-
Type:
Bug
-
Status: Open
-
Priority:
Medium
-
Resolution: Unresolved
-
Component/s: Compiler
-
Labels:None
-
Environment:
Apple Swift version 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Target: x86_64-apple-darwin19.0.0
-
Radar URL:
Description
Shouldn't this be possible on a final class?
final class S { // error - Covariant 'Self' type cannot be referenced from a stored property initializer var keyPath: KeyPath<Self, Bool> = \Self.bool var bool = true }