Closed Bug 1132288 Opened 9 years ago Closed 7 years ago

Create OneOf<T1, T2, TN...> and replace MaybeOneOf<T1, T2> with Maybe<OneOf<T1, T2>>

Categories

(Core :: MFBT, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1174916

People

(Reporter: fitzgen, Unassigned)

References

(Depends on 1 open bug)

Details

I'm using MaybeOneOf, but don't want my type to be nullable, just either T1 or T2. Would be nice to factor these things out and make them more generic.
Just noticed this bug.

Does Variant (which *you* implemented in bug 1174906, five months after filing this bug!) do what you want? If yes, this bug could be closed.
Flags: needinfo?(nfitzgerald)
Oh I see that you've actually linked the two bugs.
So how are Variant and OneOf different?
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(nfitzgerald)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.