mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
202 B
Swift
12 lines
202 B
Swift
import Foundation
|
|
|
|
class B {
|
|
func f() -> Bool {
|
|
let now = NSDate()
|
|
let later = NSDate.distantFuture as NSDate
|
|
return now.compare(later as Date) != .orderedDescending
|
|
}
|
|
}
|
|
|
|
print(B().f())
|