Why is Golang compiler unable to detect this invalid use of a nil interface?

后端 未结 0 694
南旧
南旧 2020-11-28 01:57

The following code causes a SIGSEGV error. I\'d expect the Go compiler to be able to detect this obvious invalid use and gave an error instead:

package main

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题