racket/typed-racket

tooltips missing sometimes

オープン

#667 opened on 2018/02/16

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Racket (106 件のフォーク)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (576 個のスター)
PR merge metrics
 (平均マージ 11d 14h) (30d で 1 merged 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).

コントリビューターガイド