mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
18 lines
202 B
Go
18 lines
202 B
Go
package main
|
|
|
|
type baseT struct {
|
|
length int
|
|
}
|
|
|
|
func (x *baseT) GetLength() int {
|
|
return x.length
|
|
}
|
|
|
|
type t struct {
|
|
baseT
|
|
}
|
|
|
|
func (x *t) foo(other t) bool {
|
|
return x.GetLength() != x.GetLength()
|
|
}
|