3 // Copyright 2013 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.
7 // Issue 5244: the init order computation uses the wrong
8 // order for top-level blank identifier assignments.
9 // The example used to panic because it tries calling a
10 // nil function instead of assigning to f before.
14 var f = func() int { return 1 }
16 var g = func() int { return 2 }