mirror of
https://github.com/golang/go
synced 2024-11-05 23:26:18 -07:00
2226533658
The semantics of this change are that the last line will be subsituted in place of the expression, where as the lines before that will undergo variable substitution and be prepended before the lowest (in the AST tree sense) statement which included the expression. Change-Id: Ie2571934dcc1b0a30b5cec157e690924a4ac2c5a Reviewed-on: https://go-review.googlesource.com/77730 Reviewed-by: Alan Donovan <adonovan@google.com>
12 lines
119 B
Plaintext
12 lines
119 B
Plaintext
// +build ignore
|
|
|
|
package I1
|
|
|
|
import "fmt"
|
|
|
|
func example() {
|
|
temp := 5
|
|
temp := temp + temp
|
|
fmt.Print(temp + temp)
|
|
}
|