Avatar
Avatar
treastrain / Tanaka.R
@swift-5.9.2 import Foundation struct TupleValue<T> { let value: T init(_ value: T) { print("✅", "init Type-A") self.value = value } init<each C>(_ value: T) where T == (repeat each C) { print("✅", "init Type-B") self.value = (repeat each value) } } _ = TupleValue(1) _ = TupleValue((1, 2))
✅ init Type-A ✅ init Type-A
12:22 AM
no output