Commit Graph

4240 Commits

Author SHA1 Message Date
Asumu Takikawa
8afc9346bc Remove certifiers for Opaque and Refinement types
Syntax certifiers are now deprecated. This change
should have no effect on the types.

original commit: 0e02b7e368a674582c81f5df163ce32b79ade015
2013-08-27 11:50:27 -04:00
Eric Dobson
89d0eafa25 Add real test for check-type and remove unit tests.
original commit: 83aa8bc07b8396c90e5796206ba05af8431f1422
2013-08-27 04:21:14 -07:00
Eric Dobson
2d41a3e302 Added #%expression to inst to order it correctly with ann.
original commit: c24afb09d9a61c448e32967d09768768783f034a
2013-08-27 04:21:14 -07:00
Eric Dobson
8c51bb24f3 Make parse-type-tests work even if the typecheck-tests are not run.
original commit: 55e90436791a97d107c364261a217d5e62a44ccc
2013-08-27 04:21:13 -07:00
Eric Dobson
1f027058f3 Change tc-exprs to tc-body.
original commit: 19eaf47d102f7f2bf22775e60ab17bd80a77e1e8
2013-08-27 04:21:13 -07:00
Eric Dobson
70f2fdc371 Make optimizer tests worker better with failures.
original commit: 418ecc87e08d0164f12e1264a39d8d2fcca635e6
2013-08-27 03:59:13 -07:00
Eric Dobson
a895c9618a Share typed-racket instantiation across different runs of the optimizer.
original commit: b294f8d2d5eca38397554636caa4a16c75237df4
2013-08-27 03:59:12 -07:00
Eric Dobson
b0b67529cd Make optimizer tests work without writing out files.
original commit: b3eea88fcd3556bf56f5138b2f5a0d929846a123
2013-08-27 03:59:12 -07:00
Eric Dobson
582fc7ad95 Remove registry box from optimizer tests.
original commit: ba3c8053226ec8048b81517019efd39c8fe3808e
2013-08-27 03:59:12 -07:00
Asumu Takikawa
a67be4b7be Remove inaccurate comment
original commit: 1ea063b8ff0971127d9fd649c41d21e7372f2f57
2013-08-26 15:13:31 -04:00
Asumu Takikawa
c43372a4d2 Fix TR internal error
The following expression would trigger an arity error:
  (subst-all
   (make-simple-substitution (list 'a 'z) (list (-val 3) (-val 5)))
   (make-ListDots (make-F 'z) 'a))

original commit: 8978c83b18bed1fe61f6bef0e0432e8d6108ff0d
2013-08-26 15:12:16 -04:00
Asumu Takikawa
bd7fc20134 Require Procedure contract to be a chaperone
Closes PR 13746

original commit: 7ea19bf95127adfde0db9d70b9be8d633886b870
2013-08-21 17:07:36 -04:00
Asumu Takikawa
9f922ed7e5 Refine define-runtime-path type
original commit: b299f9c18abc4e26ae65e41c9a2d54d76244eb19
2013-08-13 13:51:28 -04:00
Asumu Takikawa
3e409c9138 Add Typed Racket support for racket/runtime-path
original commit: 4a0f3f36ad8a4851fbb5ead572df45246487ef58
2013-08-13 12:05:05 -04:00
Asumu Takikawa
6a0fe073b1 Fix a TR internal error
original commit: 1468575c3db1c2e6faf31249f6540d7d147f7e58
2013-08-01 21:16:31 -04:00
Asumu Takikawa
91df513937 Add type for in-hash-pairs
Related to PR 13937

original commit: 992a14ccb5d33a00f3b7652284759a607572d47a
2013-08-01 00:18:27 -04:00
Asumu Takikawa
c659cc5bfa Document require/typed more precisely
original commit: d3c37266285a8fd5e3c044064e69f61080168982
2013-07-31 16:47:01 -04:00
Asumu Takikawa
6f75c16435 Use asymmetric filters for some evt predicates
original commit: e67f7c9de42a609ca9c30729ba6a59528204bb7c
2013-07-31 13:22:12 -04:00
Matthew Flatt
d5fe4f2f90 add pkg-desc' and pkg-authors' to each package
This information will be used to construct a catalog from the
package directories.

original commit: 057bfc2ea1a24e85ece2d5f85da30076643ea598
2013-07-31 07:06:24 -06:00
Asumu Takikawa
2d3a402e26 Add more events to the base type environment
Notably the following are not supported yet:
  - `filesystem-change-evt` (likely needs separate base type)
  - `port-progress-evt` (separate type, and how do you handle
      `port-provides-progress-evts?`?)
  - all other events that rely on progress events

Also, the events from racket/port don't work yet due
to a strange bug with bindings that have contracts imported
into TR's base environment

original commit: ace226d5060ce2f2ed3fac2b802ddaee0d31ca0a
2013-07-30 16:02:50 -04:00
Asumu Takikawa
8cfeea9ab8 Adjust TR and docs for alarm-evt's domain
It was previously non-negative real, but the actual
implementation allows negative inputs. In addition, it's
harder to use the function in TR without a more permissive
type for the domain.

original commit: 91a015255dd077e81ed05f3cd1471b916bae5cf2
2013-07-30 00:23:25 -04:00
Asumu Takikawa
1a125acab7 Add support for synchronizable events
original commit: 6c888143e7d7ece726d76a0322aa2ee36eb19f64
2013-07-29 20:14:16 -04:00
Matthew Flatt
15534c9d66 rename "typed-racket-tests" package to "typed-racket-test"
original commit: fedcd354774824458dfc07b6a43c955504cc4765
2013-07-28 14:50:52 -06:00
Asumu Takikawa
94be517efc Add TR Guide section on typed-untyped interaction
Related to PR 13869

original commit: 868e6b97b79cd8a34017a141f00c54be9fbcda77
2013-07-25 21:26:18 -04:00
Eric Dobson
18c85de02c Make Bottom generalize to Any instead of Integer.
original commit: 265603ed694375d3b355b976e5ec05fbe10a03e5
2013-07-23 23:49:51 -07:00
Eric Dobson
efae022df0 Make tc-literal deal with complicated expected types better.
Also fixes bug in literal heterogeneous vector typing.

Closes PR 13842.

original commit: 5d2c9a67e80a66d0bb92e46e58fdc5ff76285ba9
2013-07-23 22:33:31 -07:00
Eric Dobson
574da98a87 Make breaks actually break out of running all the TR tests.
original commit: e75f3dea7af767314c2b2b137d1fad026d476721
2013-07-23 22:33:31 -07:00
Eric Dobson
24218c4ea4 Make for: not allow multiple annotations.
original commit: 6195de66a6ad28451a2391e803124bed8a6c9abc
2013-07-23 22:33:31 -07:00
Sam Tobin-Hochstadt
77762e7742 Add comment.
original commit: 9f659c7df30b42ec49e6da1d85b5a0e5605fdcd1
2013-07-23 00:06:02 -04:00
Matthew Flatt
0ab3099f7e add `#%declare', require declaration of cross-phase persistent modules
original commit: 9e2cf2ab376a3461a1db943dfb35f6a152b70470
2013-07-22 12:51:37 -06:00
Eric Dobson
09e2e75f06 Minor optimizer cleanup.
original commit: 8baccb2af51538ad1e8d99fefe981a968b1dbbf8
2013-07-19 22:56:25 -07:00
Eric Dobson
7030be8535 Remove extraneous syntax-class.
original commit: 54153fbb2e63d95951e86eb4ed5bc5509cbf1b07
2013-07-19 22:56:24 -07:00
Tim Köhlmann
12974a863c Fixed file/md5's conversion for TR according to the documentation.
original commit: 074150e427193aaad9268f785ad48d9a0ad85599
2013-07-18 15:20:48 -04:00
Matthew Flatt
41ee377aa5 change release-notes' "info.rkt" field to release-note-files'
The change avoids a collision with PLaneT fields.

Also, add checking for the form of a `release-note-files' value.

original commit: 8f195a1ff65a05f7679af852f2cbfa58ea8f4bfc
2013-07-17 18:32:22 -06:00
Matthew Flatt
30e502ecc0 auto-fix documentation package dependencies
original commit: d57f26f001701c54bdd4163c60251dab4db55eba
2013-07-12 14:52:42 -06:00
Eric Dobson
6580635e35 Redo the calculation of opt-lambda expansion.
Closes PR 13661.
Closes PR 13584.

original commit: c910252fdff4d18343fc9b47334b4fd4423ae794
2013-07-10 23:27:05 -07:00
Eric Dobson
a403b7f948 Move files accidentily put in collects into pkgs.
original commit: 39333f662667fa50f27c92b9d5002e563018c645
2013-07-10 23:09:11 -07:00
Eric Dobson
af7e634fa3 Make case-lambda correctly typecheck more interesting cases.
Also doesn't typecheck dead code based on case-lambda branches never
taken.

Closes PR 12973.

original commit: e26bbffbc939b77fc04839d93cf53b99539b6860
2013-07-10 22:16:46 -07:00
Eric Dobson
e4193a0126 Cleanup provide handling in TR.
original commit: 6aad234d019030cd1ad1bc007cd6a4acfb13e760
2013-07-10 21:13:59 -07:00
Vincent St-Amour
342f479475 Move typed-racket-more to typed-racket-pkgs.
original commit: f57774de83b7d63365900cbe4e62007e7a1b507e
2013-07-09 18:26:39 -04:00
Asumu Takikawa
8577ca01cf Switch two type errors to internal errors
One of these was broken and falling into that case would
raise a random runtime error anyway.

original commit: 54cea00f4fce318986802295582151fa47a78fbd
2013-07-09 18:25:56 -04:00
Eric Dobson
4e32bbdbcf Add some test cases for plambda fixes that have already been applied.
Closes PR 13751.
Closes PR 13754.

original commit: 3990b43b6a2cc79c7affa05357d5ca85485a5008
2013-07-08 21:01:31 -07:00
Sam Tobin-Hochstadt
ccde83e589 Improve deps for Typed Racket tests.
original commit: 2299d7425d46cbb91472afd31b4216f0841e911b
2013-07-08 17:23:42 -04:00
Sam Tobin-Hochstadt
2330c5aff1 Fix handling of hasheq and hasheqv in any-wrap/c.
Fixes bug reported by Abraham Egnor.

original commit: 0f5404c80aec36200859889690683b89617f259a
2013-07-08 17:23:41 -04:00
Matthew Flatt
ed3ae0854d Typed Racket: reference `#%type-decl' through a module path index
Avoid problems with absolute paths and bytecode files.

original commit: f34a689bd702f649e697946f5fa7caf3fe244be0
2013-07-08 12:24:16 -06:00
Robby Findler
f709ea56a8 depend on redex-lib instead of all of redex
original commit: 31fbce7e5a8d2dc4c6f5a0bc945c97d92a04ca19
2013-07-06 14:34:47 -05:00
Asumu Takikawa
a200e03b19 Fix type error reporting for case-> with * domains
In the case that a case-> type included a case with a *
domain and had additional branches, a use of `apply` with
that type would fail to report a type error. This was
because the type of the applied list was ignored for type
error generation.

Closes PR 13893

original commit: 328956e8b5cd9b9c6256b1eac4f46aec98ce2a5d
2013-07-05 18:08:12 -04:00
Sam Tobin-Hochstadt
9c7ea3f871 Use #lang info instead of #lang setup/infotab.
original commit: 5a7ca7ebb56b2215f2d395ed052c03ea740817ea
2013-07-04 16:46:32 -04:00
Sam Tobin-Hochstadt
1a4c824a5c Fix dependencies.
original commit: 88e4715406f16de1cb58f634790be6e146a825da
2013-07-03 13:11:33 -04:00
Sam Tobin-Hochstadt
a556b619e4 Create unstable-debug-lib, unstable-pretty-lib, unstable-flonum-lib packages.
original commit: c7b3750320c1b4b00e5acab2defbc20900656bec
2013-07-02 18:28:34 -04:00