Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2017-06-08-a
/
.
/
validation-test
/
compiler_crashers_2
/
0105-sr5050.swift
blob: f5530286b7a8d6f20b6c76d60737a6faea239dac [
file
] [
log
] [
blame
]
// RUN: not --crash %target-swift-frontend %s -typecheck
// REQUIRES: asserts
protocol P
{}
func bar
(
p
:
P
?)
{
foo
(
p
is
String
)
}
func foo
<
T
>(
_
:
T
,
_
:
T
)
{}
func foo
<
T
>(
_
:
T
?,
_
:
T
?)
{}