mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
214 B
Swift
14 lines
214 B
Swift
// RUN: not %target-swift-frontend %s -typecheck
|
|
|
|
// https://github.com/apple/swift/issues/47626
|
|
|
|
protocol P {}
|
|
|
|
func bar(p: P?) {
|
|
foo(p is String)
|
|
}
|
|
|
|
func foo<T>(_: T, _: T) {}
|
|
func foo<T>(_: T?, _: T?) {}
|
|
|