mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-01 23:45:50 +00:00
18 lines
373 B
Go
18 lines
373 B
Go
|
package invalid8
|
||
|
|
||
|
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||
|
|
||
|
type SomeStruct1 struct {
|
||
|
Field1 int
|
||
|
}
|
||
|
|
||
|
type SomeStruct2 struct {
|
||
|
Field2 string
|
||
|
}
|
||
|
|
||
|
func Main() {
|
||
|
// Inconsistent event params usages (different named types throughout the usages).
|
||
|
runtime.Notify("SomeEvent", SomeStruct1{Field1: 123})
|
||
|
runtime.Notify("SomeEvent", SomeStruct2{Field2: "str"})
|
||
|
}
|