mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This allows us to lazily bind extensions after mutating the AST, ensuring we don't prematurely kick the building of lookup tables.
10 lines
223 B
Swift
10 lines
223 B
Swift
// RUN: %batch-code-completion -module-name main
|
|
|
|
extension Int {}
|
|
|
|
// Make sure we can resolve P here.
|
|
protocol P<X> where X: main.#^COMPLETE^# {
|
|
associatedtype X
|
|
}
|
|
// COMPLETE: Decl[Protocol]/CurrModule: P[#P#]; name=P
|