Skip to content

Commit 13d96b3

Browse files
committed
Spell out these diagnostics more, they are embarassing, but we should fix that not hide it.
1 parent 3c5c93a commit 13d96b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/NameBinding/name-binding.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func test_varname_binding() {
5050
var (d, e) = (c.1, c.0)
5151
var ((), (g1, g2), h) = ((), (e, d), e)
5252
var (j, k, l) = callee1()
53-
var (m, n) = callee1() // expected-error{{different number of elements}}
54-
var (o, p, q, r) = callee1() // expected-error{{different number of elements}}
53+
var (m, n) = callee1() // expected-error{{'(Int, Int, Int)' is not convertible to '((Int, Int, Int), (Int, Int, Int))', tuples have a different number of elements}}
54+
var (o, p, q, r) = callee1() // expected-error{{'(Int, Int, Int)' is not convertible to '((Int, Int, Int), (Int, Int, Int), (Int, Int, Int), (Int, Int, Int))', tuples have a different number of elements}}
5555
}
5656

5757
//===----------------------------------------------------------------------===//

test/expr/expressions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func errorRecovery() {
128128
var f: (Int,Int) = (1, 2, f : 3) // expected-error {{cannot convert value of type '(Int, Int, f: Int)' to specified type '(Int, Int)'}}
129129

130130
// <rdar://problem/22426860> CrashTracer: [USER] swift at …mous_namespace::ConstraintGenerator::getTypeForPattern + 698
131-
var (g1, g2, g3) = (1, 2) // expected-error {{different number of elements}}
131+
var (g1, g2, g3) = (1, 2) // expected-error {{'(Int, Int)' is not convertible to '((Int, Int), (Int, Int), (Int, Int))', tuples have a different number of elements}}
132132
}
133133

134134
func acceptsInt(x: Int) {}

0 commit comments

Comments
 (0)