Swift version 4.1 (swift-4.1-RELEASE)
/usercode/main.swift:11:18: error: reference to invalid associated type 'X' of type 'S' func f2(_ x: X) {} ^