// 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) {} func foo(_: T?, _: T?) {}