Skip to content

Inferred type is not checked agains ascription #915

@aslesarenko

Description

@aslesarenko

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

val price: Long  = ((reserveIn.toBigInt * precisionFactor) / hodlCoinsCircIn)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: ErgoScript compiler (source -> ErgoTree)Bounty - 500 SigUSDC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions