mirror of https://github.com/golang/go.git
25 lines
463 B
Go
25 lines
463 B
Go
package fillstruct
|
|
|
|
type StructPartialA struct {
|
|
PrefilledInt int
|
|
UnfilledInt int
|
|
StructPartialB
|
|
}
|
|
|
|
type StructPartialB struct {
|
|
PrefilledInt int
|
|
UnfilledInt int
|
|
}
|
|
|
|
func fill() {
|
|
a := StructPartialA{
|
|
PrefilledInt: 5,
|
|
} //@suggestedfix("}", "refactor.rewrite")
|
|
b := StructPartialB{
|
|
/* this comment should disappear */
|
|
PrefilledInt: 7, // This comment should be blown away.
|
|
/* As should
|
|
this one */
|
|
} //@suggestedfix("}", "refactor.rewrite")
|
|
}
|