anchor.diff:      else replace asmMappings (v, getAssemblies v.Type) (fun toAsm ->
         if reversePass then
           let newVar = Var (v.Name, getType toAsm v.Type (replaceType asmMappings), v.IsMutable)
  -        // store the asmMappings as we'll have to revert them later
  +        // store the original var as we'll have to revert to it later
           varTable.Add(newVar, v)
           newVar
         else
  
positive.code:             |> Seq.toArray
            newT.MakeGenericType(typeArguments)
        else 
          getType (getFullName t)
      if newT = null then
        failwithf "Type '%O' not found in '%s'" t asm.Location
      newT
  
    let rec getAssemblies (t:Type) = [
      yield t.Assembly
      if t.IsGenericType && not t.IsGenericTypeDefinition then
        for t in t.GetGenericArguments() do
          yield! getAssemblies t
    ]
  
    let rec private replaceType asmMappings (t : Type) =    
      if t.GetType().Name = "ProvidedSymbolType" then t
  
negative.code: ﻿// --------------------------------------------------------------------------------------
  // Utilities for transforming F# quotations to reference types from different assemblies
  // --------------------------------------------------------------------------------------
  
  namespace ProviderImplementation
  