Skip to content

Nested generic extensions require where clauses instead of <…> #63866

Open
@JessyCatterwaul

Description

@JessyCatterwaul

Given

enum Outer<O> {
  enum Inner<I> { }
}

This form compiles:

extension Outer.Inner where I == Outer { }

But this produces the error, "Reference to generic type 'Outer' requires arguments in <...>".

extension Outer.Inner<Outer> { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypeResolvercompilerThe Swift compiler itselfextensionFeature → declarations: `extension` declarationsfeatureA feature request or implementationgenericsFeature: generic declarations and typestype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions