diff --git a/test/type/types.swift b/test/type/types.swift index 18734858e773e..9bd5626087b9f 100644 --- a/test/type/types.swift +++ b/test/type/types.swift @@ -7,13 +7,13 @@ func test() { var z : y // expected-error {{'y' is not a type}} } -var b : Int -> Int = {$0} +var b : Int -> Int = { $0 } var c2 : (field : Int) // expected-error {{cannot create a single-element tuple with an element label}}{{11-19=}} -var d2 : () -> Int = { 4} +var d2 : () -> Int = { 4 } -var d3 : () -> Float = {4 } +var d3 : () -> Float = { 4 } var d4 : () -> Int = { d2 } // expected-error{{function produces expected type 'Int'; did you mean to call it with '()'?}} {{26-26=()}} @@ -55,8 +55,6 @@ func test_array_construct(_: T) { _ = [UnsafeMutablePointer]() // Nesting. _ = [([UnsafeMutablePointer])]() _ = [(String, Float)]() - - } // default constructing an optional fails to typecheck