[SR-8543] UIAppearance doesn't allow generic in whenContainedInInstanceOf: #51061
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 9d0d1fd9f4271291fe10ae1858692db5
Issue Description:
In the following example code it gives an error of 'Cannot assign value of type 'UIColor' to type 'UIColor!' ' It compiles fine without the generic in ExampleController.
Ideally generic classes could be used with UIAppearance. However, the error message should at least reflect the real issue.
The text was updated successfully, but these errors were encountered: