mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The directory currently seems to have a mix of tests for import resolution and name lookup. Therefore split it into two directories; ImportResolution and NameLookup.
19 lines
292 B
Swift
19 lines
292 B
Swift
public protocol Critter {
|
|
associatedtype Fur
|
|
}
|
|
public protocol Pet {}
|
|
|
|
public typealias Cat = Critter & Pet
|
|
|
|
public protocol Kitten : Cat {}
|
|
|
|
extension Kitten {
|
|
public func pet() -> Fur {
|
|
while true {}
|
|
}
|
|
}
|
|
|
|
public final class Meow<Purrs> : Kitten {
|
|
public typealias Fur = Purrs
|
|
}
|