Fix tooltip test/contracts for TR contract mode

original commit: 6c9172f50f390032dd4da914eb1f66af4c0fa554
This commit is contained in:
Asumu Takikawa 2014-11-18 21:36:48 -05:00
parent 9243ac154c
commit 9c4a8d0b62
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,8 @@
[add-typeof-expr (syntax? tc-results/c . -> . any/c)]
[type-of (syntax? . -> . tc-results/c)]
[reset-type-table (-> any/c)]
[type-table->tooltips (-> (listof (vector/c any/c integer? integer? string?)))]
[type-table->tooltips
(-> (listof (vector/c any/c integer? integer? (or/c string? (-> string?)))))]
[test-position-add-true (syntax? . -> . any)]
[test-position-add-false (syntax? . -> . any)]
[test-position-takes-true-branch (syntax? . -> . boolean?)]

View File

@ -51,7 +51,9 @@
[else
(define stxs (vector-ref result 2))
(define tooltips
(syntax-property (car stxs) 'mouse-over-tooltips))
(and (list? stxs)
(syntax? (car stxs))
(syntax-property (car stxs) 'mouse-over-tooltips)))
(if tooltips
(and (pred tooltips)
(unique-locations? tooltips))