Files
swift-mirror/test/Interpreter/SDK/objc_factory_method.swift
Doug Gregor 73528dc0e0 Enable importing factory methods as initializers by default.
Finishes <rdar://problem/16509024>.

Swift SVN r17972
2014-05-12 23:01:20 +00:00

11 lines
297 B
Swift

// RUN: rm -rf %t && mkdir %t
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
// RUN: %target-run %t/a.out | FileCheck %s
// REQUIRES: OS=macosx
import AppKit
let service = NSSharingService(named: NSSharingServiceNamePostOnTwitter)
// CHECK: Twitter
println(service.title)