Skip to content

Commit

Permalink
Generic voodoo - fixes #1294.
Browse files Browse the repository at this point in the history
TODO: Change commit message.
  • Loading branch information
inosik authored and alfonsogarciacaro committed Dec 14, 2017
1 parent e58850d commit d7ef4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/fable-core/Result.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FSymbol from "./Symbol";
import { Any, IComparable, IEquatable } from "./Util";
import { GenericParam, IComparable, IEquatable } from "./Util";
import { compareUnions, equalsUnions } from "./Util";

export default class Result<T1, T2> implements IEquatable<Result<T1, T2>>, IComparable<Result<T1, T2>> {
Expand All @@ -23,7 +23,7 @@ export default class Result<T1, T2> implements IEquatable<Result<T1, T2>>, IComp
return {
type: "Microsoft.FSharp.Core.FSharpResult",
interfaces: ["FSharpUnion", "System.IEquatable", "System.IComparable"],
cases: [["Ok", Any], ["Error", Any]],
cases: [["Ok", GenericParam("T")], ["Error", GenericParam("TError")]],
};
}
}
Expand Down

0 comments on commit d7ef4ea

Please sign in to comment.