Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-09-21-a
/
.
/
test
/
stdlib
/
IndexOfRenaming.swift
blob: 7b332d62dfd0e2af71d5d4294c0801efb81ac6ad [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift
let
a
=
[
10
,
20
,
30
,
40
,
50
,
60
]
_
=
a
.
index
(
of
:
30
)
_
=
a
.
firstIndex
(
of
:
30
)
_
=
a
.
index
(
where
:
{
$0
>
30
})
_
=
a
.
firstIndex
(
where
:
{
$0
>
30
})