Files
swift-mirror/test/Index/index_module_inheritance_access.swift
2025-10-30 14:36:29 +01:00

16 lines
588 B
Swift

// RUN: %empty-directory(%t)
//
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/Mod.swiftmodule -module-name Mod %s
// RUN: %target-swift-ide-test -print-indexed-symbols -module-to-print Mod -source-filename %s -I %t | %FileCheck %s
public class C {
fileprivate func foo() {}
}
public class D: C {
public override func foo() {}
}
// Make sure we don't report the override of the private member in the base class.
//CHECK: instance-method(public)/Swift | foo() | s:3Mod1DC3fooyyF | Def,Dyn,RelChild | rel: 1
//CHECK-NEXT: RelChild | class/Swift | D | s:3Mod1DC