*: replace interface{}
with any
keyword
Everywhere including examples, external interop APIs, bindings generators code and in other valuable places. A couple of `interface{}` usages are intentionally left in the CHANGELOG.md, documentation and tests.
This commit is contained in:
parent
83545b8451
commit
6b21ad9922
199 changed files with 1256 additions and 1231 deletions
|
@ -65,7 +65,7 @@ func MethodParams(addr interop.Hash160, h interop.Hash256,
|
|||
type MyStruct struct {}
|
||||
func (ms MyStruct) MethodOnStruct() { }
|
||||
func (ms *MyStruct) MethodOnPointerToStruct() { }
|
||||
func _deploy(data interface{}, isUpdate bool) { x := 1; _ = x }
|
||||
func _deploy(data any, isUpdate bool) { x := 1; _ = x }
|
||||
`
|
||||
|
||||
ne, d, err := CompileWithOptions("foo.go", strings.NewReader(src), nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue