Source file test/typeparam/issue47684.go
1 // run 2 3 // Copyright 2021 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package main 8 9 func f[G any]() int { 10 return func() int { 11 return func() int { 12 return 0 13 }() 14 }() 15 } 16 17 func main() { 18 f[int]() 19 } 20