mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
40 lines
808 B
Swift
40 lines
808 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
|
|
struct c {
|
|
protocol A {
|
|
let x {
|
|
}
|
|
}
|
|
func g.i {
|
|
}
|
|
protocol a {
|
|
}
|
|
protocol a {
|
|
protocol b : Array) -> {
|
|
func a("foobar""")""foobar"
|
|
typealias e : h === 1]
|
|
let h : e()
|
|
class A<j : ji.b {
|
|
var d = e() {
|
|
let t: d = { class func f<T: NSManagedObject {
|
|
}
|
|
func a<T where H) -> {
|
|
protocol b in c {
|
|
}
|
|
func b.e() {
|
|
func ^(
|
|
typealias e : Int = {
|
|
h = [")
|
|
}
|
|
}
|
|
init() -> S {
|
|
protocol c v: l -> {
|
|
case C([]).<f : d {
|
|
enum e(j,
|