hylo icon indicating copy to clipboard operation
hylo copied to clipboard

Constraint propagation failure

Open dabrahams opened this issue 8 months ago • 0 comments

At f6ee33caa, this should compile:

extension Array {
  init<C: Collection where C.Element == Element>(foo: Int) {
    self = Array() // error: type 'Element' does not conform to trait 'SemiRegular'
  }
}

dabrahams avatar Jun 20 '24 13:06 dabrahams