mirror of
https://github.com/golang/go
synced 2024-11-11 12:49:30 +00:00
2f588ff08f
For "type T = U" we were accidentally emitting a #define for "U__size" instead of "T__size". Fixes #22877. Change-Id: I5ed6757d697753ed6d944077c16150759f6e1285 Reviewed-on: https://go-review.googlesource.com/80759 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 lines
245 B
Go
15 lines
245 B
Go
// Copyright 2017 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
|
|
|
|
type S struct{ i int }
|
|
type SS = S
|
|
|
|
func sub()
|
|
|
|
func main() {
|
|
sub()
|
|
}
|