Generic function parameters cannot have default values:
This doesn't compile:
struct Foo<S1: ShapeStyle, S2: ShapeStyle> {
init(s1: S1 = .tint, s2: S2 = .primary) { }
}
so you wonder why doesn't it work?
Generic function parameters cannot have default values:
This doesn't compile:
struct Foo<S1: ShapeStyle, S2: ShapeStyle> {
init(s1: S1 = .tint, s2: S2 = .primary) { }
}
so you wonder why doesn't it work?