Revision a87ef76f85c8c42fa15329ea53adda4793bf9686 authored by Mishal Shah on 27 August 2019, 23:26:43 UTC, committed by GitHub on 27 August 2019, 23:26:43 UTC
bump compiler version to 5.0.3
constrained_optional_params.swift
// RUN: %target-typecheck-verify-swift
protocol P {
func method() -> Int
}
func address_only_bind<T: P>(x: T?) -> Int {
let y = x!.method()
return y
}
Computing file changes ...