mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
19 lines
436 B
Swift
19 lines
436 B
Swift
// RUN: %target-swift-frontend %s -emit-silgen
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
|
|
|
|
class A {
|
|
private let a = [B<(AnyObject, AnyObject) -> Void>]()
|
|
func call(#object1: AnyObject, object2: AnyObject) {
|
|
for b in a {
|
|
b.c(object1, object2)
|
|
}
|
|
}
|
|
}
|
|
private class B<C> {
|
|
let c: C
|
|
init(c: C) {
|
|
}
|
|
}
|