mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
hi! this issue is sorta blocking for me so i thought i would try to fix it. im still learning the codebase and understanding how yaegi works, but I thought I would attempt to add a test in the style of other tests as a start. please let me know if there is anything i need to change / run, or if anyone knows perhaps a good place to start for tackling this issue Fixes #1496
17 lines
250 B
Go
17 lines
250 B
Go
package main
|
|
|
|
func main() {
|
|
a := []byte{} == nil
|
|
b := nil == []byte{}
|
|
c := nil == &struct{}{}
|
|
i := 100
|
|
d := nil == &i
|
|
var v interface{}
|
|
f := nil == v
|
|
g := v == nil
|
|
println(a, b, c, d, f, g)
|
|
}
|
|
|
|
// Output:
|
|
// false false false false true true
|