// RUN: %target-swift-frontend %s -parse -verify // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // rdar://17242486 protocol a { typealias d // expected-note {{protocol requires nested type 'd'}} typealias e = d typealias f = d } class b : a { // expected-note {{'b' previously declared here}} expected-error {{type 'b' does not conform to protocol 'a'}} } class b { // expected-error {{invalid redeclaration of 'b'}} } protocol c { typealias g }