-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: don't import renamed package twice
We keep an import spec if it uses a local alias. Avoid importing it again, unless it is required by something else. Fixes #40318 Change-Id: If90de3bf30412645c9144083372e6b07df3c6a0b Reviewed-on: https://go-review.googlesource.com/c/go/+/244621 Reviewed-by: Ian Lance Taylor <[email protected]>
- Loading branch information
1 parent
0030e13
commit 64148d3
Showing
2 changed files
with
26 additions
and
3 deletions.
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,18 @@ | ||
// compile | ||
|
||
// 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. | ||
|
||
// Issue 40318 | ||
package p | ||
|
||
import ( | ||
crand "crypto/rand" | ||
"math/rand" | ||
) | ||
|
||
func F() { | ||
_ = crand.Reader | ||
_ = rand.Source(nil) | ||
} |