Better solution to the toplevel printing bug.
original commit: bc4a7df94d199ac036087b778f22c434d276c0f6
This commit is contained in:
parent
303c4913bc
commit
a724f07dc3
|
@ -1,6 +1,6 @@
|
|||
#;
|
||||
(
|
||||
silent-dead-branch.rkt 12:0 (let-values () (quote 1)) -- dead then branch
|
||||
silent-dead-branch.rkt line 12 col 0 - (let-values () (quote 1)) - dead then branch
|
||||
)
|
||||
|
||||
#lang typed/racket
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
#:when (tautology? #'tst)
|
||||
#:with opt
|
||||
(begin (log-optimization "dead else branch" #'els)
|
||||
#`(begin (void #,((optimize) #'tst))
|
||||
#,((optimize) #'thn))))
|
||||
#`(#%expression (begin #,((optimize) #'tst)
|
||||
#,((optimize) #'thn)))))
|
||||
(pattern (if tst:expr thn:expr els:expr)
|
||||
#:when (contradiction? #'tst)
|
||||
#:with opt
|
||||
(begin (log-optimization "dead then branch" #'thn)
|
||||
#`(begin (void #,((optimize) #'tst))
|
||||
#,((optimize) #'els)))))
|
||||
#`(#%expression (begin #,((optimize) #'tst)
|
||||
#,((optimize) #'els))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user