You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-9096 If a variable shadows a function, the diagnostic when attempting to invoke the variable like a function should suggest to rename the variable or qualify the function
Issue Description:
This code provides unclear error message:
extensionUIViewController {
funcfindFirst<T>(oftype: T.Type) {
lett = type(of: self) // error: Non-nominal type 'T' does not support explicit initialization
}
}
In this case variable type shadows type(of🙂 function.
Maybe compiler should provide more clear error message.
Environment: swift 4.2 Xcode 10.1. swift 5 Xcode 10.2
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 41f33f1df262ec3b611599fd1425802a
duplicates:
Issue Description:
This code provides unclear error message:
In this case variable type shadows type(of🙂 function.
Maybe compiler should provide more clear error message.
Environment: swift 4.2 Xcode 10.1. swift 5 Xcode 10.2
The text was updated successfully, but these errors were encountered: