mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
40 lines
917 B
Swift
40 lines
917 B
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
|
|
|
|
// RUN: not %target-swift-frontend %s -typecheck
|
|
(Any, e {
|
|
public var b> {
|
|
let i> A {
|
|
enum B = "\() -> : B<T, range.R
|
|
protocol A {
|
|
enum b {
|
|
(Any) -> Any) {
|
|
private let x }
|
|
}
|
|
}
|
|
print(AnyObject, i : d : b()
|
|
var b where h>(range.b
|
|
convenience init(""a<T where T, i(v: d>() {
|
|
func c(x: b(Any] {
|
|
print({
|
|
protocol A : end: A {
|
|
extension A {
|
|
extension NSSet {
|
|
print(_ = { _, object2: a)
|
|
assert(#object1, end: A, x {
|
|
func b.init(Any) {
|
|
typealias d = c, Any) {
|
|
func c<T>(()) -> : A> U : Sequence> {
|
|
if true {
|
|
i(")) -> {
|
|
}
|
|
}
|
|
}
|
|
protocol a {
|
|
typealias b : d where l.count]
|
|
func d
|