mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Now that we remember the DeclContext of lookup results when doing unqualified lookup, we don't have to walk parent contexts again to find this DeclContext. This means that unqualified lookup is now the "single source of truth" for what names are visible and why.
11 lines
457 B
Swift
11 lines
457 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
|
|
|
|
// REQUIRES: asserts
|
|
// RUN: not %target-swift-frontend %s -emit-ir
|
|
protocol P{struct A}class a:P{class a:A
|