mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
18 lines
191 B
Go
18 lines
191 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"go/ast"
|
|
)
|
|
|
|
func NewBadExpr() ast.Expr {
|
|
return &ast.BadExpr{}
|
|
}
|
|
|
|
func main() {
|
|
fmt.Printf("%T\n", NewBadExpr().(*ast.BadExpr))
|
|
}
|
|
|
|
// Output:
|
|
// *ast.BadExpr
|