`associatedtype` where constraints

swift
silver
(Dante Broggi) #1

IDE: Visual Studio X/Fire
Version: 10.0.0.2399 (develop)
Target (If relevant): OSX
Description:
Swift permits associatedtypes to have a trailing where clauses.
Silver should at least parse them.

Expected Behavior:
Until/Unless == constraints are implemented:
“E: “Equals” constraints in “where” are not supported in Silver [<file> (<line>)]”
Actual Behavior:
“E: One of “var”, “func”, “subscript”, “typealias”, “__event”, “prefix”, “postfix”, “infix”, “init”, “associatedtype”, expected, got “where” [<file> (<line>)]”
Steps:

protocol P {
  associatedtype Bar: P // Current Error Here
    where Bar.Bar == Bar // Expected Error Here
}
(RemObjects) #4

Thanks, logged as bugs://82600

(RemObjects) #7

bugs://82600 got closed with status fixed.