Unable to use a `interface{}(nil)` literal
samueltarin opened this issue · comments
In go I'm able to use a nil interface literal:
package main
import (
"fmt"
)
func main() {
fmt.Println(interface{}(nil))
// <nil>
}
In gomacro I get an error:
gomacro> import "fmt"
gomacro> fmt.Println(interface{}(nil))
runtime error: invalid memory address or nil pointer dereference
I appreciate that gomacro helps me remember syntax and little things like this, as such I wonder if this would help others remember nil interface literal syntax as well. Thanks.
fixed in commit e3e66b6