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

punning doesn't work in presence of :~ or ::

Open sorawee opened this issue 3 months ago • 1 comments

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

sorawee avatar Mar 30 '24 01:03 sorawee