Skip to content

Commit 5a53204

Browse files
committed
Merge pull request #226 from wxxsw/whitespaces
Format types.swift
2 parents 3d43231 + a025352 commit 5a53204

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/type/types.swift

+3-5
Original file line numberDiff line numberDiff 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

1212
var 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

1818
var 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

0 commit comments

Comments
 (0)