Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev.go2go] go/go2go: error, not panic, for local parameterized type
Fixes #39643 Change-Id: I45aaaf8818d4d383d1514891b5cc9bc68926ad97 Reviewed-on: https://go-review.googlesource.com/c/go/+/238619 Reviewed-by: Ian Lance Taylor <iant@golang.org>
- Loading branch information
1 parent
e0d5d9f
commit 143b944
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// errorcheck | ||
|
||
// Copyright 2020 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() { | ||
type t(type T) T // ERROR "parameterized type" | ||
} |