Commit Graph

3982 Commits

Author SHA1 Message Date
Alexis King
b9e600dc1a Add contract generation support for Async-Channelof 2015-01-19 21:11:09 -05:00
Asumu Takikawa
455bc7664b Fix type dictionary entries for overriden methods
Add typed Racket Esquire as a test case
2015-01-19 16:12:31 -05:00
Asumu Takikawa
874f426e9c Remove unnecessary requires in extra-env-lang.
Avoids phase 0 dependencies on TR internals.
2015-01-19 13:41:29 -05:00
Sam Tobin-Hochstadt
5ba9633e78 Improve hash-table overlap.
Thanks to Alex Knauth for the code and Jordan Johnson for the test case.
2015-01-19 09:48:50 -05:00
Sam Tobin-Hochstadt
579d78aa88 Add discussion of define-predicate to contract caveats. 2015-01-18 15:14:26 -05:00
Asumu Takikawa
769cd04b37 Add cond-contract requires to fix contracted tests 2015-01-18 14:20:50 -05:00
David Van Horn
88afb40f60 Parens 2015-01-17 12:54:31 -05:00
Andrew Kent
7633d6d1b8 let/ec swapped out in update 2015-01-17 14:20:30 +05:30
Sam Tobin-Hochstadt
9a39c3e793 Add for/set and for*/set to Typed Racket. 2015-01-16 09:43:37 -05:00
Andrew Kent
e7d61bd982 fixed struct field updates 2015-01-14 15:32:34 +05:30
Asumu Takikawa
e922807837 Fix contract for tc/send 2015-01-14 00:23:28 -05:00
Asumu Takikawa
2c0d4b8aec Undo local-require change from 7afeada73d
Recent changes to contract generation have made this
`local-require` unnecessary. Using `require` is preferable
since `local-require` can interact poorly with submodules.
2015-01-14 00:23:27 -05:00
Andrew Kent
8c5c032520 Merge pull request #10 from andmkent/master
path-type now allows normal internal errors
2015-01-14 06:09:25 +05:30
Sam Tobin-Hochstadt
beedaf322f Add missing dependency. 2015-01-13 10:15:08 -05:00
Asumu Takikawa
4f05adcd19 Fix type for make-brush
Related to PR 14899
2015-01-12 18:36:35 -05:00
Asumu Takikawa
ded837ce10 Fix tc/send to accept keyword argument methods
Closes PR 14910
2015-01-12 18:36:35 -05:00
Alexis King
ec946a8ba8 Note code adapted from rackunit and improve type declarations 2015-01-12 17:14:08 -05:00
Alexis King
f9b886f83b Add support for the rackunit/gui test runner 2015-01-12 17:14:08 -05:00
Alexis King
40a952da0c Add typed/rackunit/docs-complete for check-docs function 2015-01-12 17:14:08 -05:00
Alexis King
26ba7a50af Add support for test-suite functionality 2015-01-12 17:14:08 -05:00
Alexis King
5d2a0392dd Reimplement the test-case macro to typecheck properly 2015-01-12 17:14:08 -05:00
Andrew Kent
fd4f05e64b path-type sep file 2015-01-10 15:11:10 -05:00
Andrew Kent
f3104f383e path-type allow non-subtype struct acc
proper path-type mismatch error
2015-01-10 15:10:05 -05:00
Asumu Takikawa
864b0ad5fc Add more authors to typed-racket-test pkg 2015-01-09 18:08:36 -05:00
Asumu Takikawa
1818498760 Add types for font-name-directory<%> 2015-01-09 17:21:33 -05:00
Asumu Takikawa
fd9823d4f1 Use -inst abbreviation in typed/racket/draw 2015-01-09 16:14:00 -05:00
Asumu Takikawa
96731d3dfd Add types for ps-setup%
Closes PR 14902
2015-01-09 16:13:54 -05:00
Asumu Takikawa
101333abb1 Add missing DC<%> method type
Closes PR 14901
2015-01-09 13:38:49 -05:00
Asumu Takikawa
6657fe1621 Add missing types for draw functions
Closes PR 14898
Closes PR 14899
2015-01-09 13:37:42 -05:00
Asumu Takikawa
9bf90a7734 Add more type abbreviations 2015-01-09 13:36:36 -05:00
Asumu Takikawa
de926372fa Loosen contracts for with-tr-contracts unit test 2015-01-09 11:19:57 -05:00
Andrew Kent
3ed6b464e7 overlap tests for Seq and Evt, minor overlap fix 2015-01-06 15:01:16 -05:00
Andrew Kent
16db5ecc78 dont let-alias type vars, better overlap & restrict 2015-01-06 13:51:40 -05:00
Andrew Kent
dc2ce38aef Merge pull request #5 from andmkent/master
fixed mutation let-aliasing bug
2015-01-05 09:15:57 -05:00
Asumu Takikawa
8a663a5499 Remove unnecessary function argument 2015-01-04 20:33:46 -05:00
Asumu Takikawa
dbaebdd305 Propagate expected types better for private fields
Closes PR 14911
2015-01-04 19:39:14 -05:00
Sam Tobin-Hochstadt
e64abf30d2 Support #:unscaled? in save-file for Bitmap%.
Closes PR 14916.
2015-01-04 15:39:13 -05:00
Andrew Kent
9d41048747 fixed mutation let-aliasing bug
let-aliasing initially forgot to check if a variable that might act as
an alias was ever mutated. fixed by disallowing a mutated variable to
act as an alias.
2015-01-03 23:03:45 -05:00
Vincent St-Amour
a943d85375 Preserve more source locations for function definitions. 2015-01-02 20:57:08 -05:00
Sam Tobin-Hochstadt
e27e7ed28e Merge pull request #4 from AngusL/master
Add type for base64-encode optional argument
2015-01-02 17:12:02 -05:00
Asumu Takikawa
791a16e54f Fix method definitions with lambda/case-lambda
Closes PR 14904
2015-01-01 01:59:37 -05:00
Asumu Takikawa
6059fb481b Check expected type before calling tc/funapp1
This compensates for a change in commit bb3f446186
that made the possible-domains function more permissive
(possibly returning results that are inconsistent with the
 expected type).

Closes PR 14889
2015-01-01 00:03:23 -05:00
Asumu Takikawa
643c20afdb Add missing contract generation error cases
Functions with dotted values or AnyValues in the return type
aren't yet supported for contract generation.

Related to PR 14894
2014-12-27 05:31:46 -05:00
Angus Lepper
bc9a740640 Add type for base64-encode optional argument 2014-12-23 19:31:29 +00:00
Alexis King
9fe834d35c Add typed/json which exports almost all of json
Does not include support for custom nulls, but is otherwise entirely
functional.

Closes #3.
2014-12-22 20:41:24 -05:00
Andrew Kent
ca88457092 Merge pull request #2 from andmkent/master
let-aliasing + removing let imps
2014-12-22 12:59:32 -05:00
Andrew Kent
e1b8eff1f9 initial let-aliasing addition 2014-12-22 12:35:30 -05:00
Andrew Kent
53d1d8a15d restrict structural recursion 2014-12-22 12:35:15 -05:00
Andrew Kent
683ebb1023 printer fix for paths 2014-12-22 12:34:48 -05:00
Vincent St-Amour
29e4be449b Fix more collection paths. 2014-12-18 09:30:17 -05:00