Debian Codegraph @

refactor/eg/testdata/bad_type.txtar

raw
1
2 -- go.mod --
3 module example.com
4 go 1.18
5
6 -- template/template.go --
7 package template
8
9 // Test in which replacement has a different type.
10
11 const shouldFail = "int is not a safe replacement for string"
12
13 func before() interface{} { return "three" }
14 func after() interface{} { return 3 }