mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Also remove the decl from the known decls and remove a bunch of code referencing that decl as well as a bunch of other random things including deserialization support. This includes removing some specialized diagnostics code that matched the identifier ImplicitlyUnwrappedOptional, and tweaking diagnostics for various modes and various issues. Fixes most of rdar://problem/37121121, among other things.
26 lines
1.1 KiB
Swift
26 lines
1.1 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// An optional type that allows implicit member access.
|
|
///
|
|
/// The `ImplicitlyUnwrappedOptional` type is deprecated. To create an optional
|
|
/// value that is implicitly unwrapped, place an exclamation mark (`!`) after
|
|
/// the type that you want to denote as optional.
|
|
///
|
|
/// // An implicitly unwrapped optional integer
|
|
/// let guaranteedNumber: Int! = 6
|
|
///
|
|
/// // An optional integer
|
|
/// let possibleNumber: Int? = 5
|
|
@available(*, unavailable, renamed: "Optional")
|
|
public typealias ImplicitlyUnwrappedOptional<Wrapped> = Optional<Wrapped>
|