-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False Colon Violation inside guard and ternary operator #2806
Comments
Hello, @Lukasz2891. Could you please post the whole method and all variables included? I could not understand what kind of variables sandboxStoreURL and productionStoreURL are.
The essence of this bug it |
It’s a default extension to a protocol so big „Self” is needed as a not specified type. |
Hello, @Lukasz2891. |
protocol Test {
static var aaa: Any? { get }
static var bbb: Any? { get }
}
extension Test {
func foo() {
let cond = false
_ = cond ? Self.aaa : Self.bbb
}
} still produces |
@Lukasz2891: fix is not released yet |
In 0.33.x
produces false Colon Violation (
colon
) inside the ternary?:
operator.The text was updated successfully, but these errors were encountered: