• David Symonds's avatar
    exp/types: avoid init race in check_test.go. · 80f4ff22
    David Symonds authored
    There was an init race between
    	check_test.go:init
            universe.go:def
            use of Universe
    and
    	universe.go:init
            creation of Universe
    
    The order in which init funcs are executed in a package is unspecified.
    The test is not currently broken in the golang.org environment
    because the go tool compiles the test with non-test sources before test sources,
    but other environments may, say, sort the source files before compiling,
    and thus trigger this race, causing a nil pointer panic.
    
    R=gri
    CC=golang-dev
    https://golang.org/cl/6827076
    80f4ff22
Name
Last commit
Last update
..
testdata Loading commit data...
builtins.go Loading commit data...
check.go Loading commit data...
check_test.go Loading commit data...
const.go Loading commit data...
conversions.go Loading commit data...
errors.go Loading commit data...
exportdata.go Loading commit data...
expr.go Loading commit data...
gcimporter.go Loading commit data...
gcimporter_test.go Loading commit data...
operand.go Loading commit data...
predicates.go Loading commit data...
resolver_test.go Loading commit data...
stmt.go Loading commit data...
types.go Loading commit data...
types_test.go Loading commit data...
universe.go Loading commit data...