|
|
@ -336,17 +336,11 @@ typedef unsigned long foo_t; |
|
|
|
typedef struct DLL_API SomeStruct |
|
|
|
typedef struct DLL_API SomeStruct |
|
|
|
{ |
|
|
|
{ |
|
|
|
SomeStruct(); |
|
|
|
SomeStruct(); |
|
|
|
foo_t& operator[](int i); |
|
|
|
|
|
|
|
// CSharp backend can't deal with a setter here
|
|
|
|
|
|
|
|
foo_t operator[](const char* name); |
|
|
|
|
|
|
|
foo_t p; |
|
|
|
foo_t p; |
|
|
|
} SomeStruct; |
|
|
|
} SomeStruct; |
|
|
|
|
|
|
|
|
|
|
|
SomeStruct::SomeStruct() : p(1) {} |
|
|
|
SomeStruct::SomeStruct() : p(1) {} |
|
|
|
|
|
|
|
|
|
|
|
foo_t& SomeStruct::operator[](int i) { return p; } |
|
|
|
|
|
|
|
foo_t SomeStruct::operator[](const char* name) { return p; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DLL_API SomeClassExtendingTheStruct : public SomeStruct |
|
|
|
class DLL_API SomeClassExtendingTheStruct : public SomeStruct |
|
|
|
{ |
|
|
|
{ |
|
|
|
}; |
|
|
|
}; |
|
|
@ -396,6 +390,21 @@ TestProperties::TestProperties() : Field(0) {} |
|
|
|
int TestProperties::getFieldValue() { return Field; } |
|
|
|
int TestProperties::getFieldValue() { return Field; } |
|
|
|
void TestProperties::setFieldValue(int Value) { Field = Value; } |
|
|
|
void TestProperties::setFieldValue(int Value) { Field = Value; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DLL_API TestIndexedProperties |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
foo_t p; |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
TestIndexedProperties(); |
|
|
|
|
|
|
|
// Should lead to a read/write indexer with return type uint
|
|
|
|
|
|
|
|
foo_t& operator[](int i); |
|
|
|
|
|
|
|
// Should lead to a read-only indexer with return type uint
|
|
|
|
|
|
|
|
foo_t operator[](const char* name); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TestIndexedProperties::TestIndexedProperties() : p(1) {} |
|
|
|
|
|
|
|
foo_t& TestIndexedProperties::operator[](int i) { return p; } |
|
|
|
|
|
|
|
foo_t TestIndexedProperties::operator[](const char* name) { return p; } |
|
|
|
|
|
|
|
|
|
|
|
enum struct MyEnum { A, B, C }; |
|
|
|
enum struct MyEnum { A, B, C }; |
|
|
|
|
|
|
|
|
|
|
|
class DLL_API TestArraysPointers |
|
|
|
class DLL_API TestArraysPointers |
|
|
|