rhombus-prototype icon indicating copy to clipboard operation
rhombus-prototype copied to clipboard

bindings from `converting` annotations can have the wrong scope

Open mflatt opened this issue 7 months ago • 0 comments

Fails with an error about x defined multiple times:

def x :: converting(fun (x :: String) :: Int: x.to_number()) = "1"

Incorrectly allowed, since x shouldn't be available at the end:

def z :: converting(fun (x :: String) :: Int: x.to_number()) = "1"
x

mflatt avatar May 21 '25 22:05 mflatt