anchor.diff:  open FSharpx.TypeProviders.Settings
   open FSharpx.TypeProviders.DSL
   
  -let regexTy = erasedType<obj> thisAssembly rootNamespace "RegexTyped"
  +let regexTy = erasedType<Regex> thisAssembly rootNamespace "RegexTyped"
   
  -do regexTy.DefineStaticParameters(
  +regexTy.DefineStaticParameters(
       parameters=
           [ProvidedStaticParameter("pattern", typeof<string>)
            ProvidedStaticParameter("options", typeof<RegexOptions>, RegexOptions.None)], 
  
positive.code:                     ProvidedProperty(
                          propertyName = group, 
                          propertyType = typeof<Group>, 
                          GetterCode = fun args -> <@@ ((%%args.[0]:obj) :?> Match).Groups.[group] @@>)
                      |> addXmlDoc(sprintf @"Gets the ""%s"" group from this match" group)
                  matchTy.AddMember(prop)
  
          // Provide strongly typed version of Regex.Match instance method
          let matchMeth = 
              ProvidedMethod(
                  methodName = "Match", 
                  parameters = [ProvidedParameter("input", typeof<string>)], 
                  returnType = matchTy, 
                  InvokeCode = fun args -> <@@ ((%%args.[0]:obj) :?> Regex).Match(%%args.[1]) :> obj @@>)
              |> addXmlDoc "Searches the specified input string for the first occurence of this regular expression"
              
          ty.AddMember matchMeth
              
          // Declare a constructor
          let ctor = 
              ProvidedConstructor(
                  parameters = [], 
                  InvokeCode = fun args -> <@@ Regex(pattern, options) :> obj @@>)
              |> addXmlDoc "Initializes a regular expression instance"
  
          ty.AddMember ctor
              
          ty
          | _ -> failwith "unexpected parameter values"))    
negative.code: 
          match parameterValues with 
          | [| :? string as pattern; :? RegexOptions as options |] -> 
          let r = Regex(pattern, options)
                  
          let matchTy = 
              runtimeType<Match> "MatchType" 
                  |> hideOldMethods        
          
          // Add group properties to match type
          for group in r.GetGroupNames() do
  