You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#lang typed/racket
(define (g x) x)
(define x : Number (g 42))
(define y : String (g "hello"))
TR does not reject the program, even though g has type Any -> Any in this case. If we annotate g with Any -> Any, the program gets rejected as expected.