mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
47 lines
850 B
Swift
47 lines
850 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
|
|
{
|
|
return x in c {
|
|
() { c<T.a<T : T : b
|
|
class c == D> {
|
|
let t: T> {
|
|
return { c(n: AnyObject) {
|
|
}
|
|
}
|
|
protocol b = F>() {
|
|
}(b.init(a
|
|
enum B {
|
|
typealias R = B, g = i> {
|
|
}
|
|
}
|
|
let v: P {
|
|
}
|
|
protocol A : NSObject {
|
|
}
|
|
public var f = d>(n: T> {
|
|
}
|
|
}
|
|
S() -> () -> {
|
|
protocol C = {
|
|
class func c<S : Sequence, k : T : A<Y> (true }
|
|
}
|
|
self.h : C {
|
|
import Foundation
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
protocol A {
|
|
let c: d {
|
|
}
|
|
func f(f, let foo as Boolean))-> U -> {
|
|
print("[1
|
|
typealias A : A {
|