Matthew Flatt
43e01d7f4e
rename test file
...
":" is not allowed in a file name on Windows.
2013-01-02 06:33:10 -07:00
Vincent St-Amour
678451f8c4
Fix tests.
2013-01-01 18:14:52 -05:00
Vincent St-Amour
4137eb9e73
Make let: annotations optional.
2013-01-01 18:14:52 -05:00
Vincent St-Amour
67af968a73
Add failing test case for instantiation and special typing rules.
2012-12-19 13:45:49 -05:00
Asumu Takikawa
acda049f7d
Add define: form variant for polymorphic non-function values
2012-12-19 13:08:41 -05:00
Vincent St-Amour
8c66be33e7
Fix contract generation for functions with optionals and keyword arguments.
...
Closes PR13354.
2012-12-17 13:57:32 -05:00
Vincent St-Amour
ec673fd58d
Allow #:unless' in
for:'.
...
Also allow `#:break' and `#:final' in all the `for:' macros.
Unfortunately, the expansion of `#:break' and `#:final' cannot be
typechecked at the moment.
2012-12-17 13:57:31 -05:00
Asumu Takikawa
ece218fc85
Rackety
2012-12-13 17:54:58 -05:00
Asumu Takikawa
13b831f0ec
Fix unsound type variable scoping
...
Closes PR 13123
2012-12-13 17:54:58 -05:00
Asumu Takikawa
28108884ab
Fix tests where type variable scoping is wrong
2012-12-13 17:54:58 -05:00
Asumu Takikawa
c7162ec533
Fix TR error for missing mandatory keywords
2012-12-06 12:20:54 -05:00
Vincent St-Amour
9a5db10124
Fix tests.
2012-12-04 19:29:16 -05:00
Vincent St-Amour
fb73bc8b0e
Fix partial bounds checking elimination.
...
Closes PR13341.
2012-12-04 19:29:16 -05:00
Asumu Takikawa
5802b42f66
Support path/object reasoning for promises
2012-12-04 18:03:11 -05:00
Asumu Takikawa
3f2d4663a8
Fix call/comp's type
2012-12-04 16:10:39 -05:00
Vincent St-Amour
ee0a1d4b89
Randomly test the TR optimizer.
...
Compares results of a Racket and a TR sandbox.
2012-12-03 21:54:01 -05:00
Vincent St-Amour
9f9092b762
Fix optimization of unary float subtraction.
...
Closes PR13339.
2012-12-03 19:46:29 -05:00
Asumu Takikawa
0252207e38
Support Any wrapping for promises
...
Closes PR 13326
2012-12-03 17:59:55 -05:00
Asumu Takikawa
a42cc9a001
Add more tests for continuation marks & Any wrapping
2012-11-30 17:37:33 -05:00
Asumu Takikawa
904db66f65
Rename control types to be consistent with other types
2012-11-30 17:37:33 -05:00
Asumu Takikawa
4e0b38ea79
Improve type of call-with-continuation-prompt
...
Now works with the handler argument omitted, in which case
the default handler is used. Note that the default handler
cannot be used in conjunction with the default prompt tag
because it is unsound to do so.
2012-11-30 17:37:33 -05:00
Asumu Takikawa
42b07475e9
Apply Any wrappers for default-continuation-prompt-tag in TR
2012-11-30 17:37:33 -05:00
Asumu Takikawa
d6b0c71a91
Fix up old TR tests that should fail now
2012-11-30 17:37:33 -05:00
Asumu Takikawa
3ed1d56b05
Add new tests for typed control
2012-11-30 17:37:33 -05:00
Asumu Takikawa
d7163142be
Forgot to add the test for commit b4dd3b5e1d
...
Relevant to PR 13209
2012-11-30 00:12:35 -05:00
Vincent St-Amour
95d51fc892
Add new versions of for/hash: and co that the typechecker can handle.
...
Based on Eric Dobson's implementation.
Closes PR13248. Closes PR13249.
2012-11-20 17:45:15 -05:00
Vincent St-Amour
e2007abd7a
Heterogenous -> heterogenEous.
...
Found by Ray Racine.
2012-11-20 17:06:51 -05:00
Vincent St-Amour
d994ba1914
Fix types of variable arity functions to work with 0-argument return values.
...
Closes PR13218.
2012-11-20 16:15:20 -05:00
Vincent St-Amour
6a7b971cd6
Only generate ->* contracts when arguments are really optional arguments.
...
Closes PR13274.
2012-11-19 17:35:07 -05:00
Asumu Takikawa
b4a98af319
Fix whitespace in test
2012-11-10 12:03:47 -05:00
Asumu Takikawa
d22532db16
Fix Custodian type
2012-11-10 11:12:06 -05:00
Asumu Takikawa
daca1c0d5b
Fix a free variance bug
...
Commit ffe45ecce
had introduced a regression with some
polymorphic functions imported between typed modules due to
miscommunicated variance information.
2012-11-09 01:43:57 -05:00
Sam Tobin-Hochstadt
c1cace28ec
This test always errors -- belongs in fail.
2012-11-01 21:14:50 -04:00
Sam Tobin-Hochstadt
0e71f2d5dc
Fix accidental use of the wrong letrec-bound variable.
2012-10-31 21:18:44 -04:00
Sam Tobin-Hochstadt
c6dc1e6ece
Improve contract generation in Typed Racket.
...
This fixes several issues:
- `Parameter` generates impersonator contracts correctly
- `Any` handling now copies immutable data when possible
- `Any` now recognizes more atomic base types
Merge to 5.3.1.
2012-10-25 23:31:02 -07:00
Eli Barzilay
cbfb1fdb37
A whole bunch of missing newlines at EOFs (and a few other spaceages).
2012-10-19 06:47:24 -04:00
Vincent St-Amour
326e3ba33f
Add test.
2012-10-14 16:55:36 -04:00
Neil Toronto
6f52be186b
Added working for/vector:, for*/vector:, for/flvector:, for*/flvector:
...
Closes PR13185.
2012-10-14 16:28:41 -04:00
Eric Dobson
788b046549
Make expt type more correct.
...
Closes PR13170.
2012-10-14 15:44:54 -04:00
Vincent St-Amour
844e898a54
Generate ->* contracts for functions with both optional and keyword arguments.
2012-10-14 15:44:54 -04:00
Vincent St-Amour
149d8535eb
More float conversion optimizations.
2012-10-14 15:35:50 -04:00
Vincent St-Amour
758e4ff112
Only recommend dropping exactness in truly inexact contexts.
...
Please merge to release.
2012-10-12 14:42:16 -04:00
Sam Tobin-Hochstadt
962f2472e1
Revamp handling of Any
as a contract.
...
The contract now has two major differences:
- It raises an error when it would have to wrap.
- It uses chaperones to delay errors as long as possible
In general, using `Any` as a type when exporting to untyped
code will now just work, unless the untyped code tries to
communicate values back to the typed side, in which case an
immediate error will be raised.
Much of the implementation comes from the membrane design
from [Strickland et al, OOPSLA 2012].
2012-10-05 12:39:11 -04:00
Sam Tobin-Hochstadt
86522a1804
This pattern of typed submodules exposes Racket bugs.
2012-10-03 12:24:16 -04:00
Sam Tobin-Hochstadt
cab90c16d5
Test for appropriate predicates for invariant structs.
2012-09-27 17:26:32 -04:00
Sam Tobin-Hochstadt
d066a5c1d2
Fix error message pattern for use of cons/c
.
2012-09-27 16:39:16 -04:00
Eric Dobson
ffe45ecce4
Working covariant applications.
2012-09-27 16:22:22 -04:00
Eric Dobson
12233600c1
Fix -struct to use the right number of arguments to make-Struct.
2012-09-27 16:22:21 -04:00
Eric Dobson
745403a88e
Make struct type contracts better
2012-09-27 16:22:21 -04:00
Eric Dobson
9e1cf579a4
Fix type->contract on structures. Now uses struct/c.
2012-09-27 16:22:21 -04:00