blob: 72c68620d6bf21d48d09e163258ae9d1b436f88f [file] [log] [blame]
// 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
fu> Bool {
}
func f<g>() -> (g, g -> g) -> g {
d j d.i = {
}
{
g) {
h }
}
protocol f {
}
class d: f{ class func i {}
protocol A {
}
func a
struct d<f : e, g: e where g.h == f.h> {
}
protocol e {
}
protocol b {
}
struct c {
func e() {
}
}
protocol a : a {
}
protocol a {
}
class b<h : c, i : c where h.g == i> : a {
}
class b<h, i> {
}
protocol c {
}
f: A where D.C == E> {s func c() { }
}
func c<d {
enum c {
}
}
protocol A {
}
struct X<Y> : A {
func b(b: X.Type) {
}
}
func a<T>() {
enum b {
}
}
func c<d {
enum c {
}
}
struct A<T> {
}
func a(b: Int = 0) {
}
let c = a