Skip to content

Commit

Permalink
checkers: add make((T)) test for typeUnparen (go-critic#805)
Browse files Browse the repository at this point in the history
Signed-off-by: Iskander Sharipov <[email protected]>
  • Loading branch information
quasilyte authored Feb 19, 2019
1 parent a2b3d35 commit fe98086
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions checkers/testdata/typeUnparen/positive_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ func newCall() {
_ = new(*(*(*(int))))
}

func makeCall() {
/*! could simplify (map[int]int) to map[int]int */
_ = make((map[int]int))
}

func conversions() {
/*! could simplify (int) to int */
/*! could simplify (int32) to int32 */
Expand Down

0 comments on commit fe98086

Please sign in to comment.