Files
swift-mirror/test/Generics/constrained_optional_params.swift
2015-05-11 06:05:00 +00:00

10 lines
153 B
Swift

// RUN: %target-parse-verify-swift
protocol P {
func method() -> Int
}
func address_only_bind<T: P>(x: T?) -> Int {
let y = x!.method()
return y
}