Skip to content

Commit dbb8e3b

Browse files
committed
Sync up tuple_arguments and tuple_arguments_4 tests
1 parent 109112f commit dbb8e3b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

test/Compatibility/tuple_arguments_4.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 4
22

3-
// See test/Compatibility/tuple_arguments_3.swift for the Swift 3 behavior.
4-
53
func concrete(_ x: Int) {}
64
func concreteLabeled(x: Int) {}
75
func concreteTwo(_ x: Int, _ y: Int) {} // expected-note 5 {{'concreteTwo' declared here}}
@@ -1671,7 +1669,6 @@ do {
16711669
h() // expected-error {{missing argument for parameter #1 in call}}
16721670
}
16731671

1674-
16751672
// https://bugs.swift.org/browse/SR-7191
16761673
class Mappable<T> {
16771674
init(_: T) { }

test/Constraints/tuple_arguments.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,3 +1671,12 @@ do {
16711671
func h(_: ()) {} // expected-note {{'h' declared here}}
16721672
h() // expected-error {{missing argument for parameter #1 in call}}
16731673
}
1674+
1675+
// https://bugs.swift.org/browse/SR-7191
1676+
class Mappable<T> {
1677+
init(_: T) { }
1678+
func map<U>(_ body: (T) -> U) -> U { fatalError() }
1679+
}
1680+
1681+
let x = Mappable(())
1682+
_ = x.map { (_: Void) in return () }

0 commit comments

Comments
 (0)