x/playground: func Test doesn't work in module mode: function main is undeclared #66451
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
func Test(*testing.T)
is not executed on https://go.dev/play when a go.mod file is provided.What did you do?
This doesn't run: https://go.dev/play/p/ZDFf4aGucoB
What did you see happen?
Output:
What did you expect to see?
If I remove the
go.mod
, it runs correctly.Example: https://go.dev/play/p/AsRNcxCRdWx
The text was updated successfully, but these errors were encountered: