[SR-14795] Unable to conform to Comparable protocol when nested #57144
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
duplicate
Resolution: Duplicates another issue
nested types
Feature: nested types
operators
Feature: operators
swift 5.4
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
Environment
Xcode 12.5 (12E262)
Swift 5.4
MacOS 11.4
Additional Detail from JIRA
md5: a83094320601a7e3537a07f9a2558473
relates to:
Issue Description:
Attempts to conform to comparable fail, when the class declaration is nested within a test.
If I cut and paste the property class code to a global scope, it works fine.
The text was updated successfully, but these errors were encountered: