Initial commit: Go 1.23 release state
This commit is contained in:
14
test/fixedbugs/bug191.dir/a.go
Normal file
14
test/fixedbugs/bug191.dir/a.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package a
|
||||
|
||||
var A int
|
||||
|
||||
func init() {
|
||||
A = 1
|
||||
}
|
||||
|
||||
type T int;
|
||||
|
||||
13
test/fixedbugs/bug191.dir/b.go
Normal file
13
test/fixedbugs/bug191.dir/b.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package b
|
||||
|
||||
var B int
|
||||
|
||||
func init() {
|
||||
B = 2
|
||||
}
|
||||
|
||||
type V int;
|
||||
17
test/fixedbugs/bug191.dir/main.go
Normal file
17
test/fixedbugs/bug191.dir/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
|
||||
import . "./a"
|
||||
import . "./b"
|
||||
|
||||
var _ T
|
||||
var _ V
|
||||
|
||||
func main() {
|
||||
if A != 1 || B != 2 {
|
||||
panic("wrong vars")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user