mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The requirement executable_test is not needed here. It was there for historical reasons. rdar://problem/70400635
17 lines
526 B
Swift
17 lines
526 B
Swift
// RUN: %target-build-swift -Xfrontend %clang-importer-sdk %s -emit-ir
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import UIKit
|
|
|
|
class MyView: UIView {
|
|
func foo() {
|
|
UIView.animate(withDuration: 1, delay: 1, options: UIViewAnimationOptions.layoutSubviews,
|
|
animations: { print("animating") },
|
|
completion: { (finished: Bool) -> Void in print("here we are") });
|
|
UIView.animate(withDuration: 1, delay: 1, options: UIViewAnimationOptions.layoutSubviews,
|
|
animations: { print("animating") },
|
|
completion: nil);
|
|
}
|
|
}
|