Files
swift-mirror/stdlib/core/Nil.swift
Doug Gregor eaf3e5c68d Move nil/_Nil into the core library and add UnsafePointer<T> support.
Fixes <rdar://problem/15933510>.


Swift SVN r13094
2014-01-29 06:30:28 +00:00

13 lines
229 B
Swift

@asmname="swift_makeUnsafeNil" func _makeUnsafeNil() -> AnyObject
struct _Nil {
@conversion func __conversion() -> AnyObject {
return _makeUnsafeNil()
}
}
/// A null pointer constant.
var nil : _Nil {
return _Nil()
}