File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-typecheck-verify-swift -swift-version 4
2
2
3
- // See test/Compatibility/tuple_arguments_3.swift for the Swift 3 behavior.
4
-
5
3
func concrete( _ x: Int ) { }
6
4
func concreteLabeled( x: Int ) { }
7
5
func concreteTwo( _ x: Int , _ y: Int ) { } // expected-note 5 {{'concreteTwo' declared here}}
@@ -1671,7 +1669,6 @@ do {
1671
1669
h ( ) // expected-error {{missing argument for parameter #1 in call}}
1672
1670
}
1673
1671
1674
-
1675
1672
// https://bugs.swift.org/browse/SR-7191
1676
1673
class Mappable < T> {
1677
1674
init ( _: T ) { }
Original file line number Diff line number Diff line change @@ -1671,3 +1671,12 @@ do {
1671
1671
func h( _: ( ) ) { } // expected-note {{'h' declared here}}
1672
1672
h ( ) // expected-error {{missing argument for parameter #1 in call}}
1673
1673
}
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 ( ) }
You can’t perform that action at this time.
0 commit comments