Permalink
Browse files

removing a compile warning from ugly generics confusion

  • Loading branch information...
1 parent e684119 commit 3f89927306e53478bb704027245857b876201f50 @jeremydmiller jeremydmiller committed Nov 16, 2012
@@ -16,7 +16,7 @@ public class EnumerablePersistenceCheckTester
[SetUp]
public void SetUp()
{
- check = EnumerablePersistenceCheck<string>.For<EnumerableCheckTarget, string>(x => x.Names);
+ check = EnumerablePersistenceCheck<string>.For<EnumerableCheckTarget>(x => x.Names);
original = new EnumerableCheckTarget();
persisted = new EnumerableCheckTarget();
}
@@ -8,10 +8,10 @@ namespace FubuTestingSupport
{
public class EnumerablePersistenceCheck<T> : AccessorPersistenceCheck
{
- public new static EnumerablePersistenceCheck<TElement> For<T, TElement>(Expression<Func<T, IEnumerable<TElement>>> expression)
+ public new static EnumerablePersistenceCheck<T> For<TParent>(Expression<Func<TParent, IEnumerable<T>>> expression)
{
var accessor = ReflectionHelper.GetAccessor(expression);
- return new EnumerablePersistenceCheck<TElement>(accessor);
+ return new EnumerablePersistenceCheck<T>(accessor);
}
public EnumerablePersistenceCheck(Accessor accessor) : base(accessor)

0 comments on commit 3f89927

Please sign in to comment.