Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Jul 7, 2024
1 parent 60b99cc commit 8014a85
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions gnovm/tests/files/zrealm_crossrealm19.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// PKGPATH: gno.land/r/crossrealm_test
package crossrealm_test

import (
"std"

crossrealm "gno.land/r/demo/tests/crossrealm"
)

type fooer struct {
s string
}

func (f *fooer) Foo() {
f.s = "B"
println("hello " + f.s + " " + std.CurrentRealm().PkgPath())
}

var f *fooer

func init() {
f = &fooer{s: "A"}
crossrealm.SetFooer(f)
crossrealm.CallFoo()
}

func main() {
print(".")
}

// Output:

// Error:

// Realm:

0 comments on commit 8014a85

Please sign in to comment.