anchor.diff:          // printfn "transformClassWithImplicitConstructor: %A" classDecl
           let classEnt = com.GetEntity(classDecl.Entity)
           let classIdent = Expression.name(com.GetIdentifier(ctx, classDecl.Name))
  -        let consArgs, consBody, returnType =
  +        let consArgs, consBody, returnType, typeParamDecl =
               getMemberArgsAndBody com ctx ClassConstructor cons.Info.HasSpread cons.Args cons.Body
   
  +        let returnType =
  +            // change constructor's return type from None to entity type
  +            let genParams = getEntityGenParams classEnt
  +            let returnType = makeGenericTypeAnnotation' com ctx classDecl.Name (genParams |> List.ofSeq)
  +            //let typeParamDecl = makeTypeParamDecl com ctx genParams //|> mergeTypeParamDecls typeParamDecl
  +            returnType
  +
           let exposedCons =
  -            let argExprs = consArgs.Args |> List.map (fun p -> Expression.identifier(p.Arg))
  +            let argExprs =
  +                consArgs.Args
  +                |> List.map (fun p -> Expression.identifier(p.Arg))
               let exposedConsBody = Expression.call(classIdent, argExprs)
               let name = com.GetIdentifier(ctx, cons.Name)
               makeFunction name (consArgs, exposedConsBody, returnType)
  
positive.code:             for ident in idents do
                  let (Identifier name) = ident
                  if not (this.LocalScope.Contains name) && this.EnclosingScope.Contains name then
                      yield ident
                  else
                      this.Bind(name)
          ]
  
negative.code:     let declareType (com: IPythonCompiler) ctx (ent: Fable.Entity) entName (consArgs: Arguments) (consBody: Statement list) baseExpr classMembers : Statement list =
          let typeDeclaration = declareClassType com ctx ent entName consArgs consBody baseExpr classMembers
          let reflectionDeclaration, stmts =
              let ta = fableModuleAnnotation com ctx "Reflection" "TypeInfo" []
              let genArgs = Array.init ent.GenericParameters.Length (fun i -> "gen" + string i |> makeIdent)
              let generics = genArgs |> Array.mapToList (identAsExpr com ctx)
              let body, stmts = transformReflectionInfo com ctx None ent generics
  