mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
#include "../Tests.h" |
|
#include "../NamespacesBase/NamespacesBase.h" |
|
|
|
// Namespace clashes with NamespacesBase.OverlappingNamespace |
|
// Test whether qualified names turn out right. |
|
namespace OverlappingNamespace |
|
{ |
|
|
|
class InDerivedLib |
|
{ |
|
public: |
|
InDerivedLib(); |
|
Base parentNSComponent; |
|
ColorsEnum color; |
|
}; |
|
} |
|
|
|
|
|
// Using a type imported from a different library. |
|
class DLL_API Derived : public Base |
|
{ |
|
public: |
|
Derived(); |
|
|
|
Base baseComponent; |
|
Base getBase(); |
|
void setBase(Base); |
|
|
|
OverlappingNamespace::InBaseLib nestedNSComponent; |
|
OverlappingNamespace::InBaseLib getNestedNSComponent(); |
|
void setNestedNSComponent(OverlappingNamespace::InBaseLib); |
|
|
|
OverlappingNamespace::ColorsEnum color; |
|
|
|
private: |
|
int d; |
|
}; |
|
|
|
|
|
// For reference: using a type derived in the same library |
|
class Base2 |
|
{ |
|
public: |
|
Base2(); |
|
}; |
|
|
|
class Derived2 : public Base2 |
|
{ |
|
public: |
|
Derived2(); |
|
|
|
Base2 baseComponent; |
|
Base2 getBase(); |
|
void setBase(Base2); |
|
|
|
OverlappingNamespace::InDerivedLib nestedNSComponent; |
|
OverlappingNamespace::InDerivedLib getNestedNSComponent(); |
|
void setNestedNSComponent(OverlappingNamespace::InDerivedLib); |
|
void defaultEnumValueFromDependency(OverlappingNamespace::ColorsEnum c = OverlappingNamespace::ColorsEnum::black); |
|
|
|
Abstract* getAbstract(); |
|
};
|
|
|