File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ func test() {
77 var z : y // expected-error {{'y' is not a type}}
88}
99
10- var b : Int -> Int = { $0 }
10+ var b : Int -> Int = { $0 }
1111
1212var c2 : ( field : Int ) // expected-error {{cannot create a single-element tuple with an element label}}{{11-19=}}
1313
14- var d2 : ( ) -> Int = { 4 }
14+ var d2 : ( ) -> Int = { 4 }
1515
16- var d3 : ( ) -> Float = { 4 }
16+ var d3 : ( ) -> Float = { 4 }
1717
1818var d4 : ( ) -> Int = { d2 } // expected-error{{function produces expected type 'Int'; did you mean to call it with '()'?}} {{26-26=()}}
1919
@@ -55,8 +55,6 @@ func test_array_construct<T>(_: T) {
5555 _ = [ UnsafeMutablePointer < Int ? > ] ( ) // Nesting.
5656 _ = [ ( [ UnsafeMutablePointer < Int > ] ) ] ( )
5757 _ = [ ( String, Float) ] ( )
58-
59-
6058}
6159
6260// <rdar://problem/15295763> default constructing an optional fails to typecheck
You can’t perform that action at this time.
0 commit comments