Files
swift-mirror/test/APINotes/blocks.swift
Erik Eckstein ef73c398bb tests: fix APINotes/blocks.swift
The requirement executable_test is not needed here. It was there for historical reasons.

rdar://problem/70400635
2020-10-20 13:49:58 +02:00

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