Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0105-issue-47626.swift
2024-03-06 21:38:28 -05:00

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?) {}