Debian Codegraph @

test/typeparam/issue50598.dir/main.go

raw
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 import (
8 "fmt"
9
10 "./a1"
11 "./a2"
12 )
13
14 func New() int {
15 return a1.New() + a2.New()
16 }
17
18 func main() {
19 if got, want := New(), 0; got != want {
20 panic(fmt.Sprintf("got %d, want %d", got, want))
21 }
22 }