File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
validation-test/compiler_crashers_fixed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %target-swift-frontend -emit-ir -g %s
2+
3+ protocol Foo {
4+ associatedtype ErrorType : Error
5+ }
6+
7+ extension Array : Error where Element: Error { }
8+
9+ class Bar < A: Foo > {
10+ func doSomething( with result: Result < Any , [ A . ErrorType ] > ) { }
11+ }
Original file line number Diff line number Diff line change 1+ // RUN: %target-swift-frontend -emit-ir %s
2+
3+ public final class TypedNode {
4+ public var property : String ?
5+
6+ public func withProperty( _ generator: ( Self ) -> String ) -> Self {
7+ self . property = generator ( self )
8+ return self
9+ }
10+ }
11+
12+ let tree = TypedNode ( ) . withProperty { " \( $0) " }
Original file line number Diff line number Diff line change 1+ // RUN: not %target-swift-frontend -typecheck %s
2+
3+ struct A < X> { }
4+ extension A < A < Int > . B > {
5+ struct B { }
6+ }
You can’t perform that action at this time.
0 commit comments