From fe98086809bf76458a1c15aa63d390470a8aee67 Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Wed, 20 Feb 2019 01:13:58 +0300 Subject: [PATCH] checkers: add make((T)) test for typeUnparen (#805) Signed-off-by: Iskander Sharipov --- checkers/testdata/typeUnparen/positive_tests.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/checkers/testdata/typeUnparen/positive_tests.go b/checkers/testdata/typeUnparen/positive_tests.go index 7d79b8191..ed7dfa213 100644 --- a/checkers/testdata/typeUnparen/positive_tests.go +++ b/checkers/testdata/typeUnparen/positive_tests.go @@ -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 */