punning doesn't work in presence of :~ or ::
Open
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 601
- Forks
- 74
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two Rhombus examples from the issue and compare the reported #%literal error for the annotated form. Trace how punning is handled when :~ or :: is present; done means the typed form accepts ~x and preserves the behavior of the untyped form.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100