Commit Graph

321 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
77e4bbb5eb base-types-new -> base-types 2010-06-17 11:47:16 -04:00
Sam Tobin-Hochstadt
bdbb6d48e6 Try harder to find types for loop variables.
- use `find-annotation' more
 - recognize (let ([x y]) ...)
2010-06-17 11:26:33 -04:00
Sam Tobin-Hochstadt
4cc86cc8c8 set-mc[ad]r!, inference, printing, tests for mpairs 2010-06-15 16:10:16 -04:00
Sam Tobin-Hochstadt
f73d63e1af eq? is a predicate for eof 2010-06-15 14:59:08 -04:00
Sam Tobin-Hochstadt
cf5c74a2ca Generate -> instead of ->* when required by case->.
Closes PR 10977.
2010-06-13 15:01:57 -04:00
Sam Tobin-Hochstadt
d4d286d31d Allow (All (A) A -> A), dropping pair of parens. 2010-06-13 14:38:03 -04:00
Sam Tobin-Hochstadt
1cff0a1f85 Actually typecheck actuals even when there's a type annotation. 2010-06-11 19:35:56 -04:00
Sam Tobin-Hochstadt
7ece2a4872 Fix type of `zero?' to properly handle 0.0. 2010-06-11 18:54:05 -04:00
Sam Tobin-Hochstadt
fd1b20c93d Fix optimizer for refactoring. 2010-06-11 14:21:42 -04:00
Sam Tobin-Hochstadt
b649575afc new bug with mutation 2010-06-11 11:55:22 -04:00
Sam Tobin-Hochstadt
0379e534e3 New interface for unstable/mutated-vars
- functional hash tables
 - fix clients
2010-06-10 13:28:29 -04:00
Vincent St-Amour
6b4ca4d7b0 Added tests and documentation for Thread and Channel types. 2010-06-09 14:54:37 -04:00
Vincent St-Amour
0741b48c99 Modified the for: macros to use sequence types. 2010-06-09 14:54:34 -04:00
Sam Tobin-Hochstadt
78023d08f9 Sequenceof type.
- inferencing and subtyping relation with vectors, lists, etc
- use in `make-sequence'
- add tests
2010-06-09 11:03:12 -04:00
Sam Tobin-Hochstadt
78832fe332 Support case-lambda with multiple branches with keyword arguments. 2010-06-08 17:50:48 -04:00
Sam Tobin-Hochstadt
7f300a2c4f Special-case (- x 1) for use in loops. 2010-06-08 12:05:56 -04:00
Sam Tobin-Hochstadt
7df8e32793 Properly handling immutable invariant structs. 2010-06-07 14:03:06 -04:00
Sam Tobin-Hochstadt
0e3c2b71cc Test for PR 10946. 2010-06-01 13:38:45 -04:00
Vincent St-Amour
2229173b82 Changed the types of some numerical operations to be closed on naturals. 2010-05-29 11:31:47 -04:00
Sam Tobin-Hochstadt
d323a794e8 Change `typed-scheme' numerics.
- `number?' no longer `real?'
 - Number no longer Real
 - remove obsolete environments
 - Fix tests to use Real where necessary.
 - Fix typed/mred and typed/framework
 - Fix insert-large-letters to use `sub1' for type-safe loop

Merge to 5.0.
2010-05-28 19:24:46 -04:00
Vincent St-Amour
e9a0014630 Disabled multi-valued seq-exprs in the for: macros because using them
triggers an internal error in the typechecker.
2010-05-28 19:05:44 -04:00
Vincent St-Amour
c92ae73859 Wrote tests for the for: macros. 2010-05-28 19:05:44 -04:00
Sam Tobin-Hochstadt
34fef6e538 Re-enable test. 2010-05-27 12:46:29 -04:00
Sam Tobin-Hochstadt
9701ae0065 Avoid requiring old base-types. 2010-05-27 10:56:18 -04:00
Sam Tobin-Hochstadt
63dbde1e9e Fix test for new `do:' behavior. 2010-05-27 10:10:26 -04:00
Eli Barzilay
5c702976c2 A few more stray "racunit"s. 2010-05-26 15:21:55 -04:00
Sam Tobin-Hochstadt
775e1b06a5 Test for former bug. Closes PR 10470. 2010-05-25 00:09:03 -07:00
Sam Tobin-Hochstadt
27e971dce2 Check that at least one require spec is provided.
Closes PR 10617.
 Merge to v5.0.
2010-05-24 22:33:31 -07:00
Sam Tobin-Hochstadt
af689b2531 Tests for bug found by David Van Horn. 2010-05-24 14:04:43 -07:00
Sam Tobin-Hochstadt
f320d36e9c Fix parsing of All on RHS of -> 2010-05-24 13:26:29 -07:00
Sam Tobin-Hochstadt
230f1a59c6 More precise types for: truncate, floor ceiling 2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
e9ac3651a4 Add test file.
Closes PR 10594.
2010-05-19 15:22:22 -05:00
Sam Tobin-Hochstadt
9fe3747a19 Allow expected type to have weaker filters and objects.
Closes PR 10729.
2010-05-19 15:14:18 -05:00
Sam Tobin-Hochstadt
7e9313bad3 Allow recursive types in type annotations for `list'.
Closes PR 10562.
 Tests for fixed bugs.
2010-05-19 15:14:18 -05:00
Vincent St-Amour
790658886b Wrote tests for the new pair accessor type signatures. 2010-05-19 13:10:36 -04:00
Sam Tobin-Hochstadt
3fd5c49172 Add test for PR 10318.
Closes PR 10318.
2010-05-19 11:12:13 -05:00
Sam Tobin-Hochstadt
638245e4c5 Better type annotation support.
- Delay more errors for additional reporting.
 - Don't re-check expressions that were checked for inference.
 Closes PR 10098.
2010-05-19 10:10:54 -05:00
Sam Tobin-Hochstadt
535dc73fad More fixes for Vincent. 2010-05-17 18:03:34 -04:00
Sam Tobin-Hochstadt
d2a1470ea5 Fix repeated type ascription. 2010-05-17 16:20:44 -05:00
Sam Tobin-Hochstadt
0d1d61c725 rename to .rkt 2010-05-17 15:55:23 -05:00
Sam Tobin-Hochstadt
68391b2d7f Fix for git/rkt 2010-05-17 15:36:28 -05:00
Sam Tobin-Hochstadt
ce874bb0a1 rename to rkt 2010-05-17 15:29:12 -05:00
Eli Barzilay
7b14a1f585 "Racunit" -> "Rackunit" 2010-05-17 12:07:32 -04:00
Eli Barzilay
fcedc30ee4 Rename "collects/tests/mred" -> ".../gracket".
Some additional mred-related tweaks.
2010-05-17 01:44:27 -04:00
Sam Tobin-Hochstadt
21b5c25c90 Add annotation to test.
Fix default case for `vector-set!'
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
ff36a6e8d1 sensible handling of literal vectors 2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
7ac925695f more sensible version of het vectors.
add vector-length, vector-set!
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
ec14f2c0b8 Finish het vectors 2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
0558d11abb more testing 2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
a893116391 fix more tests 2010-05-13 13:36:54 -04:00