[SR-9956] classes defined inside functions can't be made to conform to Equatable? #52359
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
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
Environment
c
Additional Detail from JIRA
md5: c2436514a3ae706e9e8ec30597e978fc
duplicates:
Issue Description:
I have this Swift program
which I think is totally fine but it claims that
Bar
doesn't conform to Equatable. MovingBar
outside the functionfoo
however makes it compile.Also: all works with {{struct}}s.
Error is
The text was updated successfully, but these errors were encountered: