mirror of
https://github.com/golang/go
synced 2024-11-05 23:36:12 -07:00
14 lines
230 B
Plaintext
14 lines
230 B
Plaintext
|
// +build ignore
|
||
|
|
||
|
package template
|
||
|
|
||
|
// Basic test of type-aware expression refactoring.
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func before(s string) error { return fmt.Errorf("%s", s) }
|
||
|
func after(s string) error { return errors.New(s) }
|