typed-racket icon indicating copy to clipboard operation
typed-racket copied to clipboard

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

Open SuzanneSoy opened this issue 8 years ago • 0 comments

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)

SuzanneSoy avatar Jun 23 '17 14:06 SuzanneSoy