main.bend fails
raw source on the hub · import ezx@1.4.0.0/main.bend as Main
ezx: ez, the package manager for Bend 2.
main: ez's program, and the entry the hub publishes as ezx. Building this
file builds the ez binary (bend main.bend -o ez), and a plain Bend file
that imports it and calls main builds the same binary. The program itself
is src/ez/main.bend; every module it reaches lives under src/, so the
LICENSE beside this file goes along with the package and nothing else sorts
before it. ez's ledger library, which reads an ez.toml, is
src/ledger/manifest.bend, importable from the package at that path.
2 imports
import Base import ./src/ez/main.bend as App
The reader could not load this file (at 0xf1c957a470368870a6d1d62a8c0cbe32/src/body.bend:9). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Text)
- observed : 'Text'
Location:
8 | Empty{}
9>| Text{text: String}
| ^^^^
10 | Octets{bytes: List<&2, U32>}