neva
neva copied to clipboard
[Parser]: `struct` cannot be used as a node name
type User struct {
age int
name string
}
// FIXME - cannot use 'struct' as a node name
component Main(start any) (stop any) {
nodes { Println, builder Struct<User> }
:start -> [
('John' -> builder:name),
(32 -> builder:age)
]
builder:msg -> println:data
println:sig -> :stop
}