Files
swift-mirror/test/stdlib/IndexOfRenaming.swift
2018-04-21 18:07:25 -05:00

9 lines
188 B
Swift

// 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 })