Browse Source

Skip dependent types when handling CLI type references.

pull/250/head
triton 12 years ago
parent
commit
7594df6d11
  1. 3
      src/Generator/Generators/CLI/CLITypeReferences.cs
  2. 6
      tests/Basic/Basic.h

3
src/Generator/Generators/CLI/CLITypeReferences.cs

@ -78,6 +78,9 @@ namespace CppSharp.Generators.CLI
if (record.Value is Namespace) if (record.Value is Namespace)
continue; continue;
if (record.Value.IsDependent)
continue;
if (filterNamespaces) if (filterNamespaces)
{ {
var declNamespace = GetEffectiveNamespace(record.Value); var declNamespace = GetEffectiveNamespace(record.Value);

6
tests/Basic/Basic.h

@ -494,3 +494,9 @@ DLL_API decltype(nullptr) TestNullPtrTypeRet()
{ {
return nullptr; return nullptr;
} }
// Tests dependent name types
template<typename T> struct DependentType
{
DependentType(typename T::Dependent* t) { }
};

Loading…
Cancel
Save