Skip to content

Commit

Permalink
test: add test for issue 15602
Browse files Browse the repository at this point in the history
The problem was fixed by the rollback in CL 22930.
This CL just adds a test to prevent regressions.

Fixes #15602

Change-Id: I37453f6e18ca43081266fe7f154c6d63fbaffd9b
Reviewed-on: https://go-review.googlesource.com/22931
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
  • Loading branch information
josharian committed May 8, 2016
1 parent 55546ef commit 3696e46
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/fixedbugs/issue15602.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// compile

// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package p

func f(i interface{}) {
i, _ = i.(error)
}

0 comments on commit 3696e46

Please sign in to comment.