Skip to content

Commit

Permalink
test: add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Sep 30, 2024
1 parent 7b775fc commit 69ac182
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions gnovm/tests/files/recursive_native.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package main

import "fmt"

type Role struct {
Name string
Permissions []string
Users []string
Next *Role
Prev *Role
}

func main() {
userRole := &Role{
Name: "user",
Permissions: []string{},
Users: []string{},
Next: nil,
Prev: nil,
}

fmt.Printf("%v", userRole)
}

// Output:
// &{user [] [] <nil> <nil>}

0 comments on commit 69ac182

Please sign in to comment.