compiler: load constants directly on inline
This commit is contained in:
parent
27e60455c7
commit
3484025065
4 changed files with 39 additions and 19 deletions
|
@ -110,8 +110,7 @@ func TestInlineConversion(t *testing.T) {
|
|||
func Main() int {
|
||||
a := 2
|
||||
{
|
||||
b := 1
|
||||
return (b + a) * (b + a)
|
||||
return (1 + a) * (1 + a)
|
||||
}
|
||||
}`
|
||||
b2, err := compiler.Compile("foo.go", strings.NewReader(src2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue