Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar73379770.swift
Robert Widmann 0943351fe7 Use the Correct DeclContext When Simplifying Member Constraints
Looking for the parent source file is going to fail when the paramter
we're interested in comes from a module context. Request the correct
top-level context in those situations.

rdar://73379770
2021-01-20 15:42:35 -08:00

9 lines
168 B
Swift

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