Source file test/fixedbugs/bug088.dir/bug1.go

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import P "./bug0"
     8  
     9  func main() {
    10  	a0 := P.V0();  // works
    11  	a1 := P.V1();  // works
    12  	a2, b2 := P.V2();  // doesn't work
    13  	_, _, _, _ = a0, a1, a2, b2;
    14  }
    15  
    16  /*
    17  uetli:~/Source/go1/test/bugs/bug088.dir gri$ 6g bug0.go && 6g bug1.go
    18  bug1.go:8: shape error across :=
    19  bug1.go:8: a2: undefined
    20  bug1.go:8: b2: undefined
    21  bug1.go:8: illegal types for operand: AS
    22  	(<(bug0)P.int32>INT32)
    23  */
    24  

View as plain text