Browse Source

Use a different generic type variable name that does not conflict with the parent one.

pull/28/head
triton 12 years ago
parent
commit
cf040d9c2a
  1. 4
      src/Generator/Passes/PassBuilder.cs

4
src/Generator/Passes/PassBuilder.cs

@ -30,9 +30,9 @@ namespace CppSharp
/// <summary> /// <summary>
/// Finds a previously-added pass of the given type. /// Finds a previously-added pass of the given type.
/// </summary> /// </summary>
public T FindPass<T>() where T : TranslationUnitPass public U FindPass<U>() where U : TranslationUnitPass
{ {
return Passes.OfType<T>().Select(pass => pass as T).FirstOrDefault(); return Passes.OfType<U>().Select(pass => pass as U).FirstOrDefault();
} }
} }
} }

Loading…
Cancel
Save