blob: c2277fb5cf5db41e5341d97870002b5ae9a37f90 [file] [log] [blame]
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// REQUIRES: OS=ios
import AssetsLibrary
// Test the enumerateGroupsWithTypes overload that accepts UInt32.
// This should compile and not crash at runtime.
let library = ALAssetsLibrary()
library.enumerateGroupsWithTypes(ALAssetsGroupAll,
usingBlock: {(group: ALAssetsGroup?, stop: UnsafeMutablePointer<ObjCBool>?) -> Void in
print("Swift usingBlock")},
failureBlock: {(error: Error?) -> Void in
print("Swift failureBlock")})