mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
compiler: inline expressions with type conversions, fix #1879
Don't count `string(data)` or `[]byte(data)` as function calls.
This commit is contained in:
parent
6b3afe9131
commit
1d6d7206e9
4 changed files with 48 additions and 9 deletions
3
pkg/compiler/testdata/foo/foo.go
vendored
3
pkg/compiler/testdata/foo/foo.go
vendored
|
@ -5,6 +5,9 @@ func NewBar() int {
|
|||
return 10
|
||||
}
|
||||
|
||||
// Dummy is dummy constant.
|
||||
var Dummy = 1
|
||||
|
||||
// Foo is a type.
|
||||
type Foo struct{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue