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
2 parent s 148ea44 + 4d66676
Raw File
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
}
back to top