[SR-14277] Build error referencing RawValue.Stride for C imported enum #56636
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c interop
Feature: Interoperability with C
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
enum
Feature → type declarations: Swift enumeration declarations
extension
Feature → declarations: `extension` declarations
protocol
Feature → type declarations: Protocol declarations
swift 5.3
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
Environment
Swift 5.3
Additional Detail from JIRA
md5: a81833ca13b773dcb09510610bc2d844
Issue Description:
The following enum:
Causes the following code to fail in the compiler:
With the following error:
However, if we replace the imported type with a native equivalent:
The error goes away.
It is unclear what is supposedly circular about the code in question.
The error can also be avoided by changing this:
into this:
Suggesting the issue is with the resolution of
Self.Stride
The text was updated successfully, but these errors were encountered: