Skip to content

plot-pict does not return a typed/pict type #15

@bennn

Description

@bennn

On Racket v6.4.0.15, this code fails to compile. Casting p to a pict type makes the program compile and run, but the cast shouldn't be necessary.

#lang typed/racket/base

(require plot/typed/no-gui
         typed/pict)

(define p (plot-pict '() #:x-min 0 #:x-max 0 #:y-min 0 #:y-max 0))
(hc-append 0
           p
           (blank 0 0))

The error message

Type Checker: type mismatch
  expected: pict
  given: Pict
  in: p

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions