mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If class property with the same name has been found on both subclass and superclass, let's always prefer subclass with all else equal, because subclass property could only be found if requested directly. Resolves: rdar://problem/32973206
20 lines
608 B
Swift
20 lines
608 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: %target-swift-frontend -emit-module -o %t/rdar32973206_a.swiftmodule %S/Inputs/rdar32973206_a.swift
|
|
// RUN: %target-swift-frontend -I %t -emit-module -o %t/rdar32973206_b.swiftmodule %S/Inputs/rdar32973206_b.swift
|
|
// RUN: %target-swift-frontend -I %t -emit-module -o %t/rdar32973206_c.swiftmodule %S/Inputs/rdar32973206_c.swift
|
|
// RUN: %target-swift-frontend -I %t -emit-sil -verify %s | %FileCheck %s
|
|
|
|
import rdar32973206_a
|
|
import rdar32973206_b
|
|
import rdar32973206_c
|
|
|
|
// CHECK: A.foo
|
|
let _ = A.foo
|
|
|
|
// CHECK: B.foo
|
|
let _ = B.foo
|
|
|
|
// CHECK: B.foo
|
|
let _ = C.foo
|