Files
swift-mirror/test/Interop/Cxx/class/inheritance/Inputs/inherited-lookup.h
Gabor Horvath 4de92656dd [cxx-interop] Fix unqualified name lookup failure
When MemberImportVisibility is enabled we failed to find certain base
methods from the extensions when said base methods are imported from
C++.

rdar://154887575
2025-07-08 12:41:01 +01:00

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