mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes compiler_crashers tests that use the ObjC interface on iOS hardware SDKs. Swift SVN r23458
11 lines
386 B
Swift
11 lines
386 B
Swift
// RUN: %target-swift-frontend %s -parse -verify
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/tmu (Teemu Kurppa)
|
|
// rdar://18175202
|
|
|
|
func d<b: SequenceType, e where Optional<e> == b.Generator.Element>(c : b) -> e? {
|
|
for (mx : e?) in c { // expected-error {{type of expression is ambiguous without more context}}
|
|
}
|
|
}
|