Always populate type table, regardless of optimizer status.
Closes #343.
This commit is contained in:
parent
a906b1c172
commit
b352739131
|
@ -69,8 +69,7 @@
|
|||
old)
|
||||
(tooltip (cons e seen) t)))
|
||||
(tooltip (list e) t)))
|
||||
(when (optimize?)
|
||||
(hash-update! type-table e (combine t) t)))
|
||||
(hash-update! type-table e (combine t) t))
|
||||
|
||||
;; when typechecking a case-> type, types get added for
|
||||
;; the same subexpression multiple times, combine them
|
||||
|
|
9
typed-racket-test/succeed/gh-issue-343.rkt
Normal file
9
typed-racket-test/succeed/gh-issue-343.rkt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang typed/racket/base #:no-optimize
|
||||
(require typed/racket/class)
|
||||
|
||||
(define c%
|
||||
(class object%
|
||||
(init-field val)
|
||||
(super-new)))
|
||||
|
||||
(instantiate c% (3))
|
Loading…
Reference in New Issue
Block a user