onflow / cadence

Cadence, the resource-oriented smart contract programming language 🏃‍♂️
https://developers.flow.com/cadence
Apache License 2.0
526 stars 136 forks source link

add check when borrowing value that it's not a reference #3398

Closed dsainati1 closed 2 weeks ago

dsainati1 commented 3 weeks ago

Closes https://github.com/dapperlabs/cadence-internal/issues/235

Adds an additional check in borrow to make sure that the value being borrowed is not itself a reference