main.bend fails
raw source on the hub · import ezx@1.3.0.0/main.bend as Main
ezx: ez's ledger library for Bend 2: it parses an ez.toml into its package, dependencies and pinned tools.
main: the library's entry, which the hub publishes as ezx. It names the
reading ledger/manifest.bend does, one def each, so a program can read a
ledger by importing this file alone; the types the answers come in are
ledger/manifest.bend's, and a program that takes one apart imports that
file too. It sits at the top of the repo so the LICENSE beside it goes
along with the package. The ez binary is ez/main.bend, which ez.toml names
as bin.
2 imports
import Base import ./ledger/manifest.bend as M
The reader could not load this file (at 0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.bend:32). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
31 | # not be the one.
32>| type Tool is Data:
| ^^^^
33 | Tool{name: String, entry: String, bin: String, source: Source}