rhombus-prototype
rhombus-prototype copied to clipboard
punning doesn't work in presence of :~ or ::
This is OK:
#lang rhombus
fun foo(~x):
x
This is not OK:
#lang rhombus
fun foo(~x :: Number):
x
which produces the error:
#%literal: not an allowed literal term in: ~x