File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ func test() {
7
7
var z : y // expected-error {{'y' is not a type}}
8
8
}
9
9
10
- var b : Int -> Int = { $0 }
10
+ var b : Int -> Int = { $0 }
11
11
12
12
var c2 : ( field : Int ) // expected-error {{cannot create a single-element tuple with an element label}}{{11-19=}}
13
13
14
- var d2 : ( ) -> Int = { 4 }
14
+ var d2 : ( ) -> Int = { 4 }
15
15
16
- var d3 : ( ) -> Float = { 4 }
16
+ var d3 : ( ) -> Float = { 4 }
17
17
18
18
var d4 : ( ) -> Int = { d2 } // expected-error{{function produces expected type 'Int'; did you mean to call it with '()'?}} {{26-26=()}}
19
19
@@ -55,8 +55,6 @@ func test_array_construct<T>(_: T) {
55
55
_ = [ UnsafeMutablePointer < Int ? > ] ( ) // Nesting.
56
56
_ = [ ( [ UnsafeMutablePointer < Int > ] ) ] ( )
57
57
_ = [ ( String, Float) ] ( )
58
-
59
-
60
58
}
61
59
62
60
// <rdar://problem/15295763> default constructing an optional fails to typecheck
You can’t perform that action at this time.
0 commit comments