summaryrefslogtreecommitdiffstats
path: root/test/typeparam/issue50121b.dir/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/issue50121b.dir/main.go')
-rw-r--r--test/typeparam/issue50121b.dir/main.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/typeparam/issue50121b.dir/main.go b/test/typeparam/issue50121b.dir/main.go
new file mode 100644
index 0000000..3398601
--- /dev/null
+++ b/test/typeparam/issue50121b.dir/main.go
@@ -0,0 +1,12 @@
+package main
+
+import (
+ "./d"
+ "fmt"
+)
+
+func main() {
+ if got, want := d.BuildInt(), 42; got != want {
+ panic(fmt.Sprintf("got %d, want %d", got, want))
+ }
+}