<pre class="notranslate">go version:
go version devel +4971493b0e14 Tue Oct 01 23:44:20 2013 -0400 darwin/amd64

the code:
<a href="https://gist.github.com/mitchellh/3883097d9d57fccbfb88">https://gist.github.com/mitchellh/3883097d9d57fccbfb88</a>

(the code actually works fine on play.golang.org, I'm not sure what changed in Go 1.2
but on 1.2 this panics)

The panic looks like this. If you look, the line number of `net.(*TCPConn).Close` is on
line 1 in dial.go. Is this working as intended? It made debugging this trickier.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x35077]

goroutine 1 [running]:
runtime.panic(0x74e40, 0x114e19)
    /Users/mitchellh/go/src/pkg/runtime/panic.c:266 +0xb6
net.(*TCPConn).Close(0x0, 0x7b6a0, 0x117228)
    /Users/mitchellh/go/src/pkg/net/dial.go:1 +0x17
main.main()
    /tmp/test/test.go:10 +0x41
exit status 2</pre>
<p dir="auto">Let <code class="notranslate">foo.go</code> be:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main

// Foo does nothing.
func Foo() {}"><pre class="notranslate"><span class="pl-k">package</span> main

<span class="pl-c">// Foo does nothing.</span>
<span class="pl-k">func</span> <span class="pl-en">Foo</span>() {}</pre></div>
<p dir="auto">Running <code class="notranslate">gorename -offset foo.go:#40 -to Bar</code> does update the function definition, but not the comment, as such:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main

// Foo does nothing.
func Bar() {}"><pre class="notranslate"><span class="pl-k">package</span> main

<span class="pl-c">// Foo does nothing.</span>
<span class="pl-k">func</span> <span class="pl-en">Bar</span>() {}</pre></div>
<p dir="auto">This would be the desired output:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main

// Bar does nothing.
func Bar() {}"><pre class="notranslate"><span class="pl-k">package</span> main

<span class="pl-c">// Bar does nothing.</span>
<span class="pl-k">func</span> <span class="pl-en">Bar</span>() {}</pre></div>