Closed
Description
Hi! Thanks for building AssemblyScript!
I noticed that "upcast" and "downcast" are switched:
assemblyscript/src/compiler.ts
Lines 3472 to 3501 in 53af0e0
"Upcast" should be the straightforward, static case whereas "downcast" should be dynamic and more complex.
No logic changes are needed, just the words need to be switched, especially in the error message below:
assemblyscript/src/compiler.ts
Line 10564 in 53af0e0
For context, that error message was pointed out to be wrong in LimeChain/demo-subgraph#39.
I created a PR to fix this issue: #2423.