// TestNewAlias tests that alias.NewAlias creates an alias of a type // whose underlying and Unaliased type is *Named. // When gotypesalias=1 (or unset) and GoVersion >= 1.22, the type will // be an *types.Alias. func TestNewAlias(t *testing.T) { … } // TestNewAlias tests that alias.NewAlias can create a parameterized alias // A[T] of a type whose underlying and Unaliased type is *T. The test then // instantiates A[Named] and checks that the underlying and Unaliased type // of A[Named] is *Named. // // Requires gotypesalias GODEBUG and aliastypeparams GOEXPERIMENT. func TestNewParameterizedAlias(t *testing.T) { … }