Protocol header `where` clause

(Dante Broggi) #1

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

Expected Behavior :
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.