anchor.diff:                  cls.UnionCases
                   |> Seq.mapi (fun i case ->
                       let constantCase v =
  +                        hasConstantCase <- true
                           if constants.Add(v) then
                               ConstantFSharpUnionCase v
                           else
  
positive.code:                 )
                  |> List.ofSeq
              
              //if hasStaticConstructor then   
              //    let body = 
              //        Function([], 
              //            cases |> Seq.mapi (fun i c ->
              //                if c.Kind = SingletonFSharpUnionCase then
              //                    ExprStatement <|
              //                        ItemSet(
              //                            Self, 
              //                            Value (String c.Name), 
              //                            CopyCtor(def, Object [ "$", Value (Int i) ])
              //                        )  
              //                else
              //                    Empty
              //            )
              //            |> List.ofSeq |> CombineStatements
              //        )
              //    clsMembers.Add (NotResolvedMember.StaticConstructor body)
  
              let i =
                  FSharpUnionInfo {
                      Cases = cases
  
negative.code:         Option.isSome baseCls || hasWSPrototype ckind clsMembers
  
      let mutable hasSingletonCase = false
      let mutable hasConstantCase = false
  
      if annot.IsJavaScript || hasWSPrototype || isAugmentedFSharpType cls then
          if cls.IsFSharpUnion then
  