blob: 7ffad46954e5278df1c64e6afb32344e31d83c37 [file] [log] [blame]
// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
class Foo {}
extension Array where Element == Foo {
class Bar { var foo = Foo() }
init(withAThing: String) {
self = [Bar(), Bar(), Bar()].map { $0.foo }
}
}
// CHECK: [main.Foo, main.Foo, main.Foo]
let foos = [Foo](withAThing: "Hi")
print(foos)