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 authored and SimplyDanny committed Feb 9, 2024
1 parent 8fbfc27 commit ccfbfb8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ struct RedundantTypeAnnotationRule: OptInRule {
}
var direction↓: Direction = Direction.up
""")
"""),
Example("let values↓: [Int] = [Int]()")
],
corrections: [
Example("var url↓: URL = URL()"): Example("var url = URL()"),
Expand All @@ -73,7 +74,8 @@ struct RedundantTypeAnnotationRule: OptInRule {
let myVar = Int(5)
}
}
""")
"""),
Example("let values↓: [Int] = [Int]()"): Example("let values = [Int]()")
]
)
}
Expand Down

0 comments on commit ccfbfb8

Please sign in to comment.