1// compile 2 3// Copyright 2020 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 7package p 8 9func f() { 10 if len([]int{})-1 < len([]int{}) { 11 } 12 13 var st struct { 14 i int 15 } 16 g := func() string { 17 return "" 18 } 19 h := func(string) string { 20 return g() + g() 21 } 22 s, i := "", 0 23 24 st.i = len(s) 25 i = len(h(s[i+0:i+1])) + len(s[len(s)+1:i+1]) 26 s = s[(len(s[i+1:len(s)+1])+1):len(h(""))+1] + (s[i+1 : len([]int{})+i]) 27 i = 1 + len([]int{len([]string{s[i+len([]int{}) : len(s)+i]})}) 28 29 var ch chan int 30 ch <- len(h("")) - len(s) 31} 32