blob: 151c8d19473f5a1a8f42a444958fda111d0d6073 [file] [log] [blame]
// RUN: %target-parse-verify-swift
// Infer bound generic types in closures
func dict_int_string_indexer(_ getElement: (Dictionary<Int, String>) -> String) -> String {
let dict = [0 : "zero", 1 : "one", 2 : "two"];
return getElement(dict)
}
func test_dict_int_string_indexer() {
_ = dict_int_string_indexer({ (x : Dictionary) in x[1]! })
}