mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
...instead of trying to guess it ourselves.
My previous attempt at this (part of the optional pointers work,
bc83940) made a critical mistake because our only test case /also/
referenced UIApplicationMain directly. I've made the test case test
several more situations, and also added what /would/ be an
execution test if our simulator testing handled UI-based tests.
rdar://problem/25712303
13 lines
186 B
Swift
13 lines
186 B
Swift
import Foundation
|
|
import UIKit
|
|
|
|
public func publicFoo(x: AnyObject.Type) -> String {
|
|
return NSStringFromClass(x)
|
|
}
|
|
|
|
public func publicBar() {
|
|
UIApplicationMain(0, nil, nil, nil)
|
|
}
|
|
|
|
|