1// compile 2 3// Copyright 2011 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// Issue 2549 8 9/* Used to die with 10missing typecheck: [7f5bf07b4438] 11 12. AS l(45) 13. . NAME-main.autotmp_0017 u(1) a(1) l(45) x(0+0) class(PAUTO) 14esc(N) tc(1) used(1) ARRAY-[2]string 15internal compiler error: missing typecheck 16*/ 17package main 18 19import ( 20 "fmt" 21 "path/filepath" 22) 23 24func main() { 25 switch _, err := filepath.Glob(filepath.Join(".", "vnc")); { 26 case err != nil: 27 fmt.Println(err) 28 } 29} 30 31