blob: 4c978d648fd47d842efb8d0625e249e317edf77c [file] [log] [blame]
// RUN: %target-swift-frontend -typecheck %s -swift-version 3
// RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t.result -swift-version 3
// RUN: diff -u %s.expected %t.result
// RUN: %target-swift-frontend -typecheck %s.expected -swift-version 4
func takesNothing(_ f: () -> ()) {
f()
f()
}
func takesVoidFunction(_ f: () -> ()) {
f()
f()
}
takesNothing { print("Hello") }
takesVoidFunction { print("Hello") }