mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Merge pull request #240 from max-schaefer/fix-frontend-errors
Fix frontend errors
This commit is contained in:
3
ql/test/experimental/CWE-322/vendor/golang.org/x/crypto/ssh/stub.go
generated
vendored
3
ql/test/experimental/CWE-322/vendor/golang.org/x/crypto/ssh/stub.go
generated
vendored
@@ -9,6 +9,7 @@ package ssh
|
||||
|
||||
import (
|
||||
io "io"
|
||||
net "net"
|
||||
time "time"
|
||||
)
|
||||
|
||||
@@ -39,7 +40,7 @@ type Config struct {
|
||||
|
||||
func (_ *Config) SetDefaults() {}
|
||||
|
||||
type HostKeyCallback func(string, Addr, PublicKey) error
|
||||
type HostKeyCallback func(string, net.Addr, PublicKey) error
|
||||
|
||||
func InsecureIgnoreHostKey() HostKeyCallback {
|
||||
return nil
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
| depth.go:22:1:25:1 | function declaration | 1 |
|
||||
| depth.go:22:1:25:1 | function declaration | 0 |
|
||||
| main.go:5:1:5:30 | function declaration | 0 |
|
||||
| main.go:7:1:9:1 | function declaration | 2 |
|
||||
| main.go:11:1:11:14 | function declaration | 0 |
|
||||
|
||||
@@ -19,7 +19,7 @@ type d struct {
|
||||
f string
|
||||
}
|
||||
|
||||
func test2() int {
|
||||
func test2() {
|
||||
x := a{b{0}, c{d{"hi"}}}
|
||||
fmt.Printf("%v", x.f) // prints `0`, not `"hi"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user