> return New(TypeOf("Interface {}")) Yes, it gives a string. It doesn't matter here since it's only an edge case.
> What is the full stack trace Here it is, ``` === RUN TestInterfaceOf unexpected fault address 0xc0000b8090 fatal error: fault [signal SIGSEGV: segmentation violation code=0x2 addr=0xc0000b8090 pc=0xc0000b8090] goroutine 18 [running]: runtime.throw({0x5d79de?, 0x1?}) /home/debian/go/src/runtime/panic.go:992 +0x71 fp=0xc00008d768 sp=0xc00008d738 pc=0x435e91 runtime.sigpanic() /home/debian/go/src/runtime/signal_unix.go:825 +0x305 fp=0xc00008d7b8 sp=0xc00008d768 pc=0x44c265 runtime.call16(0xc0000a2630, 0xc0000a8088, 0x0, 0x0, 0x0, 0x8, 0xc00008dce8) /home/debian/go/src/runtime/asm_amd64.s:701 +0x49 fp=0xc00008d7d8 sp=0xc00008d7b8 pc=0x466a49 runtime.reflectcall(0xc0000a6120?, 0x1?, 0x1?, 0xc0278?, 0xc0?, 0x1?, 0x1?) <autogenerated>:1 +0x3c fp=0xc00008d818 sp=0xc00008d7d8 pc=0x46ae1c reflect.Value.call({0xc0000ae380?, 0x75b600?, 0x0?}, {0x5d7760, 0x4}, {0xc00008dee0, 0x0, 0x4cb9ae?}) /home/debian/go/src/reflect/value.go:556 +0x845 fp=0xc00008de08 sp=0xc00008d818 pc=0x4c5885 *** call(frametype, fn, stackArgs, uint32(frametype.size), uint32(abi.retOffset), uint32(frameSize), ®Args) *** reflect.Value.Call({0xc0000ae380?, 0x75b600?, 0x1?}, {0xc00008dee0, 0x0, 0x0}) /home/debian/go/src/reflect/value.go:339 +0xbf fp=0xc00008de80 sp=0xc00008de08 pc=0x4c4dff *** return v.call("Call", in) *** testmod/pkg/testproject.TestInterfaceOf(0x0?) /home/debian/projects/testmod/pkg/testproject/testproject_test.go:45 +0x154 fp=0xc00008df70 sp=0xc00008de80 pc=0x58be54 *** Dan.Method(0).Call([]reflect.Value{}) // panic *** testing.tRunner(0xc000083520, 0x5e6f18) /home/debian/go/src/testing/testing.go:1439 +0x102 fp=0xc00008dfc0 sp=0xc00008df70 pc=0x4fc602 testing.(*T).Run.func1() /home/debian/go/src/testing/testing.go:1486 +0x2a fp=0xc00008dfe0 sp=0xc00008dfc0 pc=0x4fd4aa runtime.goexit() /home/debian/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00008dfe8 sp=0xc00008dfe0 pc=0x4685e1 created by testing.(*T).Run /home/debian/go/src/testing/testing.go:1486 +0x35f goroutine 1 [chan receive]: testing.(*T).Run(0xc000083380, {0x5da04c?, 0x4fbfe5?}, 0x5e6f18) /home/debian/go/src/testing/testing.go:1487 +0x37a testing.runTests.func1(0xc0000a2420?) /home/debian/go/src/testing/testing.go:1839 +0x6e testing.tRunner(0xc000083380, 0xc000093cd8) /home/debian/go/src/testing/testing.go:1439 +0x102 testing.runTests(0xc0000c21e0?, {0x722ae0, 0x2, 0x2}, {0x7fe2dfd795b8?, 0x40?, 0x72b620?}) /home/debian/go/src/testing/testing.go:1837 +0x457 testing.(*M).Run(0xc0000c21e0) /home/debian/go/src/testing/testing.go:1719 +0x5d9 main.main() _testmain.go:49 +0x1aa FAIL testmod/pkg/testproject 0.005s ``` -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/eb14a8d8-82eb-4582-b445-f4a46d0a2becn%40googlegroups.com.