mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* Give Sequence a top-level Element, constrain Iterator to match * Remove many instances of Iterator. * Fixed various hard-coded tests * XFAIL a few tests that need further investigation * Change assoc type for arrayLiteralConvertible * Mop up remaining "better expressed as a where clause" warnings * Fix UnicodeDecoders prototype test * Fix UIntBuffer * Fix hard-coded Element identifier in CSDiag * Fix up more tests * Account for flatMap changes
15 lines
483 B
Swift
15 lines
483 B
Swift
// RUN: %target-typecheck-verify-swift -solver-memory-threshold 10000 -propagate-constraints
|
|
// XFAIL: *
|
|
// rdar://problem/31794148
|
|
|
|
var z = 10 + 10 // expected-error{{expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions}}
|
|
|
|
// No errors should appear below as a result of the error above.
|
|
var x = [1, 2, 3, 4.5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ,19]
|
|
var y = 10
|
|
|
|
class C {}
|
|
|
|
var c = C()
|
|
var d = c
|