// RUN: not %target-swift-frontend -typecheck %s typealias IndexResult = Result extension IndexResult { func perfect() -> Self { Success(true) } }