We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14bc3b5 commit ae725fbCopy full SHA for ae725fb
_test/gen10.go
@@ -0,0 +1,12 @@
1
+package main
2
+
3
+func genFunc() (f func()) {
4
+ return f
5
+}
6
7
+func main() {
8
+ println(genFunc() == nil)
9
10
11
+// Output:
12
+// true
interp/type.go
@@ -2213,7 +2213,7 @@ func isEmptyInterface(t *itype) bool {
2213
}
2214
2215
func isGeneric(t *itype) bool {
2216
- return t.cat == funcT && t.node != nil && len(t.node.child[0].child) > 0
+ return t.cat == funcT && t.node != nil && len(t.node.child) > 0 && len(t.node.child[0].child) > 0
2217
2218
2219
func isFuncSrc(t *itype) bool {
0 commit comments