Skip to content

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

@sorawee

Description

@sorawee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions