Closed
Description
➜ near-bindgen git:(number-types) ✗ ./test.sh
+ BASEDIR=../..
+ ../../bin/asc model.ts --nearFile model_near.ts
+ ../../bin/asc main.ts --nearFile main_near.ts
ERROR TS2322: Type 'FooBar' is not assignable to type 'FooBar'.
return foobars.map<ContainerClass>((it: FooBar, i: i32, arr: Array<FooBar>): ContainerClass => {
~~~~~~~~~~
in main.ts(35,40)
ERROR: Compile error
at Object.main (/Users/vg/Documents/assemblyscript/cli/asc.js:477:21)
at Object.<anonymous> (/Users/vg/Documents/assemblyscript/bin/asc:4:60)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
For repro see nearprotocol#23
Go to tests/near-bindgen
and run ./test.sh
.
It looks like #489 doesn't fully solve all name clash issues.