blob: e755645866d2f3839cc670fae403166c6d2779b5 [file] [log] [blame]
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// REQUIRES: objc_interop
#if os(OSX)
import AppKit
#endif
#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
#endif
let foo: [CGColor] =
[CGColor(colorSpace: CGColorSpaceCreateDeviceRGB(),
components: [1.0, 0.0, 0.0, 1.0])!]
let bar = foo as NSArray
// CHECK: CGColor
print(bar[0])