Debian Codegraph @

quickfix/qf1009/testdata/go1.0/CheckTimeEquality/CheckTimeEquality.go.golden

raw
1 package pkg
2
3 import "time"
4
5 func foo() time.Time { return time.Time{} }
6 func bar() time.Time { return time.Time{} }
7
8 func fn() {
9 var t1, t2 time.Time
10 if t1.Equal(t2) { //@ diag(`probably want to use time.Time.Equal instead`)
11 }
12
13 if foo().Equal(bar()) { //@ diag(`probably want to use time.Time.Equal instead`)
14 }
15 }