mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When MemberImportVisibility is enabled we failed to find certain base methods from the extensions when said base methods are imported from C++. rdar://154887575
28 lines
456 B
C++
28 lines
456 B
C++
#pragma once
|
|
|
|
struct One {
|
|
int method(void) const { return 1; }
|
|
int operator[](int i) const { return 1; }
|
|
};
|
|
|
|
struct IOne : One {
|
|
int methodI(void) const { return -1; }
|
|
};
|
|
|
|
struct IIOne : IOne {
|
|
int methodII(void) const { return -11; }
|
|
};
|
|
|
|
struct IIIOne : IIOne {
|
|
int methodIII(void) const { return -111; }
|
|
};
|
|
|
|
class Base {
|
|
public:
|
|
bool baseMethod() const { return true; }
|
|
};
|
|
|
|
namespace Bar {
|
|
class Derived : public Base {};
|
|
} // namespace Bar
|