racket/typed-racket

tooltips missing sometimes

开放

#667 创建于 2018年2月16日

 (0 条评论) (0 个反应) (0 位负责人)Racket (106 个派生)github user discovery
enhancementgood first issue

仓库指标

星标
 (576 个星标)
PR 合并指标
 (平均合并 11天 14小时) (30 天内合并 1 个 PR)

描述

In DrRacket, this program:

#lang typed/racket #:no-optimize

(: plus (-> (U String Integer)
            (U String Integer)
            (U String Integer)))
(define (plus x y)
  (cond
    [(and (number? x) (number? y))
     (+ x y)]
    [(number? x)
     (string-append
      (format "~a" x)
      (format "~a" y))]
    [(string? x)
     (string-append
      (format "~a" x)
      (format "~a" y))]
    [else
     (+ x (car x))]))

shows no tooltips in the (+ x (car x)) bit. It would be nice to show something about what's going on (not just silence).

贡献者指南