racket / racket/typed-racket

(Object #:row-var r) should be allowed

Open
#562 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

class
Dominant language
Racket
Stars
575
Forks
106
Avg merge
2h 1m
Merged PRs (30d)
2

Description

What version of Racket are you using?

6.9.0.4

What program did you run?
(:type (All (r #:row) (Instance (Class #:row-var r))))
(:type (All (r #:row) (Object #:row-var r)))
What should have happened?

The first line prints the type (All (r #:row) (Object #:row-var r)). However, that type cannot be parsed back, as Object does not accept the #:row-var clause.

I suppose Object should allow #:row-var, and its documentation should be updated accordingly.

If you got an error message, please include it here.
Object: expected Object type clause in: (Object #:row-var r)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the two type expressions from the issue and reproducing the Object clause error. Trace the parser or type-definition entry point for Object, then check the related documentation. Done means Object accepts #:row-var consistently with Class and the documentation describes the supported clause.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.