Created
June 4, 2024 14:38
-
-
Save bplattenburg/5aff77a665ef770998c63b7e48c1e603 to your computer and use it in GitHub Desktop.
Swift masking property with computed var from extension should fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This fails in an isolated playground as expected, | |
// but when the original struct is in an SPM package | |
// and the extension is in my app it does not, | |
// and the extension version is what ultimately gets called | |
public struct Test { | |
public var property: String | |
} | |
extension Test { | |
var property: String { "extension" } | |
} |
Author
bplattenburg
commented
Jun 4, 2024

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment