Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inferred type is not checked agains ascription #915

Open
Tracked by #810
aslesarenko opened this issue Sep 1, 2023 · 1 comment · May be fixed by #935
Open
Tracked by #810

Inferred type is not checked agains ascription #915

aslesarenko opened this issue Sep 1, 2023 · 1 comment · May be fixed by #935
Labels
A-frontend Area: ErgoScript compiler (source -> ErgoTree) Bounty - 500 SigUSD C-bug Category: This is a bug
Milestone

Comments

@aslesarenko
Copy link
Member

The following code produces ErgoTree where price: BigInt, whereas it should fails with type error.

val price: Long  = ((reserveIn.toBigInt * precisionFactor) / hodlCoinsCircIn)
@aslesarenko aslesarenko added C-bug Category: This is a bug A-frontend Area: ErgoScript compiler (source -> ErgoTree) labels Sep 1, 2023
@aslesarenko aslesarenko mentioned this issue Sep 21, 2023
21 tasks
@kushti kushti added 5.x and removed 5.x labels Jan 30, 2024
@kushti kushti added this to the v5.x milestone Jan 30, 2024
@kushti
Copy link
Member

kushti commented Jan 30, 2024

also, #404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: ErgoScript compiler (source -> ErgoTree) Bounty - 500 SigUSD C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants