Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftassociated typesSingle-choice MCQ

An associated type can be given a default and can be inferred from a method signature. In the code below, what is `Wrapper.Value` inferred to be?

protocol Boxing { associatedtype Value func unwrap() -> Value } struct Wrapper: Boxing { let stored: Int func unwrap() -> Int { stored } }