mirror of
https://github.com/golang/go
synced 2024-11-22 00:34:40 -07:00
parent
7fcf422181
commit
6a4b2492b3
@ -231,6 +231,8 @@ walkdef(Node *n)
|
|||||||
t->printed = 0;
|
t->printed = 0;
|
||||||
t->method = nil;
|
t->method = nil;
|
||||||
t->nod = N;
|
t->nod = N;
|
||||||
|
t->printed = 0;
|
||||||
|
t->deferwidth = 0;
|
||||||
|
|
||||||
// double-check use of type as map key
|
// double-check use of type as map key
|
||||||
// TODO(rsc): also use of type as receiver?
|
// TODO(rsc): also use of type as receiver?
|
||||||
|
17
test/fixedbugs/bug235.go
Normal file
17
test/fixedbugs/bug235.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// $G $D/$F.go
|
||||||
|
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
// used to crash the compiler
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
type T struct {
|
||||||
|
x [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
var p *T
|
||||||
|
var v = *p
|
||||||
|
|
Loading…
Reference in New Issue
Block a user