mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The underlying type can now refer to generic parameters from an outer context, and we allow qualified and unqualified access to such typealiases. One problem remains, with specializations of generic typealiases in expression parsing context, marked with FIXME in the test.
14 lines
470 B
Swift
14 lines
470 B
Swift
// This source file is part of the Swift.org open source project
|
|
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
|
|
// RUN: not %target-swift-frontend %s -parse
|
|
// REQUIRES: asserts
|
|
protocol a{
|
|
typealias e
|
|
class A{typealias B<S>:a
|
|
let e=B
|