Skip to content

Files

Latest commit

 

History

History
45 lines (22 loc) · 568 Bytes

File metadata and controls

45 lines (22 loc) · 568 Bytes

Pattern: Malformed :

Issue: -

Description

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.

Examples of correct code:

let abc: Void


let abc: [Void: Void]


let abc: (Void, Void)


let abc: ([Void], String, Int)


let abc: [([Void], String, Int)]

Examples of incorrect code:

let abc:Void


let abc:  Void


let abc :Void


let abc : Void


let abc : [Void: Void]

Further Reading