Files
swift-mirror/validation-test/compiler_crashers/0240-argemitter-emitexpanded.swift
Dmitri Hrybenko f808b18eb7 Validation tests: annotate that 0240-argemitter-emitexpanded.swift does
not crash anymore

Swift SVN r24711
2015-01-24 23:53:21 +00:00

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