From a7277f9e5960cb71e8179f11fd37c93acff243af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignas=20Jasiu=CC=84nas?= Date: Fri, 17 Apr 2020 12:55:20 +0300 Subject: [PATCH] Add indirec to OneOfN enums --- StoryFlow/Interfaces/Helpers/OneOf.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/StoryFlow/Interfaces/Helpers/OneOf.swift b/StoryFlow/Interfaces/Helpers/OneOf.swift index 35898e4..cfa3fff 100644 --- a/StoryFlow/Interfaces/Helpers/OneOf.swift +++ b/StoryFlow/Interfaces/Helpers/OneOf.swift @@ -1,30 +1,30 @@ import Foundation -public enum OneOf2 { +public indirect enum OneOf2 { case t1(T1), t2(T2) } -public enum OneOf3 { +public indirect enum OneOf3 { case t1(T1), t2(T2), t3(T3) } -public enum OneOf4 { +public indirect enum OneOf4 { case t1(T1), t2(T2), t3(T3), t4(T4) } -public enum OneOf5 { +public indirect enum OneOf5 { case t1(T1), t2(T2), t3(T3), t4(T4), t5(T5) } -public enum OneOf6 { +public indirect enum OneOf6 { case t1(T1), t2(T2), t3(T3), t4(T4), t5(T5), t6(T6) } -public enum OneOf7 { +public indirect enum OneOf7 { case t1(T1), t2(T2), t3(T3), t4(T4), t5(T5), t6(T6), t7(T7) } -public enum OneOf8 { +public indirect enum OneOf8 { case t1(T1), t2(T2), t3(T3), t4(T4), t5(T5), t6(T6), t7(T7), t8(T8) }