Skip to content

Commit

Permalink
Merge pull request #81 from drslump/override-object-mapping
Browse files Browse the repository at this point in the history
Move entity mapping for void, object and duck to a virtual method
  • Loading branch information
bamboo committed Dec 16, 2013
2 parents a47304b + 3b4c5cf commit 224e4bf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ public class ReflectionTypeSystemProvider : IReflectionTypeSystemProvider
public ReflectionTypeSystemProvider()
{
_referenceCache = new MemoizedFunction<Assembly, AssemblyReference>(AssemblyEqualityComparer.Default, CreateReference);
Initialize();
}

virtual protected void Initialize()
{
MapTo(typeof(object), new ObjectTypeImpl(this));
MapTo(typeof(Builtins.duck), new ObjectTypeImpl(this));
MapTo(typeof(void), new VoidTypeImpl(this));
Expand Down

0 comments on commit 224e4bf

Please sign in to comment.