Protocol header `where` clause

swift
silver
(Dante Broggi) #1

IDE: Visual Studio X/Fire
Version: 10.0.0.2399 (develop)
Target (If relevant): OSX
Description :
Swift permits protocols to have a where clause in their headers for constraints on inherited associatedtypes.

Expected Behavior :
Compiles.
Actual Behavior :
“E: opening bracket expected, got “where” [<file> (<line>)]”
Steps :

protocol P {
  associatedtype Bar: P
}

protocol Q: P where Bar: Q {} // Error Here
(RemObjects) #2

Thanks, logged as bugs://82614

(RemObjects) #3

bugs://82614 got closed with status fixed.