This sounds like a bug in the initial type environment for Typed Racket. It’s worth a Github Issue or PR.
> On Aug 12, 2018, at 2:56 PM, Axel Schnell <axel.schn...@gmail.com> wrote: > > I just encountered a problem while I was experimenting with typed racket and > the drawing toolkit. I called (send my-bitmap-dc some-x-value some-y-value > my-color) and the interpreter complained that set-pixel broke it's own > contract. I decided to look at the type of this method (or should I better > call it function?). The type is defined in a file named "gui-types.rkt". In > the section of the type-definition of Bitmap-DC% is the line > [set-pixel (Real Real (Instance Color%) -> Boolean)] > I changed that into > [set-pixel (Real Real (Instance Color%) -> Void)] > Now my code worked perfectly and I'm happy for the time being. > > But as I am not really a developer I don't feel too comfortable changing > program code which should be private to the racket-lang system. So my > questions are now was it alright to make this change or is there something > which has to be considered first before making such changes deep in the > racket-lang system? > > Thanks in advance for any suggestions. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com > <mailto:racket-users+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.