You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Fable.Transforms/FSharp2Fable.fs
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -84,10 +84,7 @@ let private transformNewUnion com ctx r fsType (unionCase: FSharpUnionCase) (arg
84
84
Fable.NewList(headAndTail, typ)|> makeValue r
85
85
| DiscriminatedUnion(tdef, genArgs)->
86
86
letgenArgs= makeGenArgs ctx.GenericArgs genArgs
87
-
lettag= unionCaseTag tdef unionCase
88
-
// If the order of cases changes in the declaration, the tag has to change too
89
-
// mark all files calling the union constructor as watch dependencies
90
-
com.AddWatchDependency(FsEnt.SourcePath tdef)
87
+
lettag= unionCaseTag com tdef unionCase
91
88
Fable.NewUnion(argExprs, tag, FsEnt.Ref tdef, genArgs)|> makeValue r
92
89
93
90
letprivatetransformTraitCall com (ctx:Context)r typ (sourceTypes:Fable.Type list)traitName (flags:MemberFlags)(argTypes:Fable.Type list)(argExprs:Fable.Expr list)=
@@ -263,7 +260,7 @@ let private transformUnionCaseTest (com: IFableCompiler) (ctx: Context) r
263
260
| StringEnum(_, rule)->
264
261
return makeEqOp r unionExpr (transformStringEnum rule unionCase) BinaryEqualStrict
0 commit comments