mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
17 lines
273 B
Swift
17 lines
273 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func f0<T>(_ x: T) {}
|
|
|
|
// FIXME: Lookup breaks if these come after f1!
|
|
class A {
|
|
init() {}
|
|
};
|
|
class B : A {
|
|
override init() { super.init() }
|
|
}
|
|
|
|
func f1(_ a: A) -> A { return a }
|
|
func f1(_ b: B) -> B { return b }
|
|
|
|
f0(f1(B()))
|