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].