blob: 89839069f8ba35015a3626ed6ebfdd42427a8c76 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// test6 fails the log check, because it incorrectly
// uses LogCall thinking it is LogCallf, which is
// caught as a result of the first argument to
// the returned anonymous function not being a
// pointer.
package test6
import (
"v.io/x/ref/lib/apilog"
)
type Type struct{}
func (Type) ReturnsSomething(a int) (b int) {
defer apilog.LogCallf(nil, "a: %d", a)(nil, "b: %d", b)
return 42
}