From 85a9751982b815f6dfd7b88c5c65e2fae925cd61 Mon Sep 17 00:00:00 2001 From: Denis Krivak Date: Fri, 18 Aug 2023 07:48:22 +0200 Subject: [PATCH] Update to go 1.21. --- go.mod | 2 +- testdata/check/main.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 86ead94..a9f733e 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/tetafro/godot -go 1.16 +go 1.21 require gopkg.in/yaml.v2 v2.4.0 diff --git a/testdata/check/main.go b/testdata/check/main.go index 0f5b978..f2f51f7 100644 --- a/testdata/check/main.go +++ b/testdata/check/main.go @@ -92,6 +92,11 @@ type Message struct { Type string } +// Generic type [PASS]. +type Array[T int64 | float64] struct { + Elements []T +} + // Declaration multiline comment // second line // third line with a period [PASS].