Skip to content

Commit

Permalink
Add example for #3141
Browse files Browse the repository at this point in the history
Fixes #3141
  • Loading branch information
marcelofabri committed Oct 24, 2022
1 parent 321f4e6 commit 026caa4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public struct RedundantTypeAnnotationRule: OptInRule, SwiftSyntaxCorrectableRule
}
var direction↓: Direction = Direction.up
""")
"""),
Example("let values↓: [Int] = [Int]()")
],
corrections: [
Example("var url↓: URL = URL()"): Example("var url = URL()"),
Expand All @@ -71,7 +72,8 @@ public struct RedundantTypeAnnotationRule: OptInRule, SwiftSyntaxCorrectableRule
let myVar = Int(5)
}
}
""")
"""),
Example("let values↓: [Int] = [Int]()"): Example("let values = [Int]()")
]
)

Expand Down

0 comments on commit 026caa4

Please sign in to comment.