Vincent St-Amour
439e0ba650
Required in wrong module.
2015-12-18 16:49:59 -06:00
Vincent St-Amour
f9e3418d8a
Only show OC button in DrR when the tool is actually loaded.
...
Closes PR13344.
2015-12-18 15:58:40 -06:00
Sam Tobin-Hochstadt
519dfb6fdc
Handle Sequenceof
in the type parser to support multiple values.
2015-12-17 19:42:29 -05:00
Sam Tobin-Hochstadt
ad88f45bbe
Merge pull request #269 from jsmaniac/fix-promise-provide
...
Fixes GH issue #268 “Can't provide promise for polymorphic struct”.
2015-12-17 09:50:21 -05:00
Georges Dupéron
f992786243
Fixes GH issue #268 “Can't provide promise for polymorphic struct”.
...
See also commit 5cd5f77
“Don't allow promises created with `delay/name` as `(Promise T)`.”.
The contracts in `typed-racket-lib/typed-racket/static-contracts/combinators/structural.rkt` should be just a single identifier, not a lambda expression, because `typed-racket-lib/typed-racket/private/type-contract.rkt` relies on that, and passes the contract name to free-identifier=?, which won't work on a lambda.
2015-12-17 14:52:40 +01:00
Georges Dupéron
c9e0197d51
Merge branch 'master' of github.com:racket/typed-racket into improve-error-messages
2015-12-17 13:51:25 +01:00
Sam Tobin-Hochstadt
077ff4ab2f
Remove use of this-expression-source-directory
.
...
Fixes presence of build system path in .zo files.
2015-12-11 10:12:33 -05:00
Alex Knauth
fdbf052bdb
Merge pull request #259 from AlexKnauth/define-new-subtype-docs
...
Clarify define-new-subtype docs
2015-12-10 16:00:04 -05:00
Matthew Flatt
38e091c1c4
add type for an internal function in a match
expansion
2015-12-09 17:21:56 -07:00
Asumu Takikawa
7f05dc6731
Update docs & tests for struct constructor options
2015-12-08 00:33:45 -05:00
Asumu Takikawa
796af399bf
Support #:constructor-name in TR's struct
2015-12-08 00:33:43 -05:00
Asumu Takikawa
fc809e370e
Add support for #:extra-constructor-name to struct
...
Simplify TR's define-struct to expand to struct
2015-12-08 00:33:06 -05:00
Alex Knauth
d3b56d8a5c
Clarify define-new-subtype docs
2015-12-03 17:15:38 -05:00
Vincent St-Amour
70afdf6f70
Relax type of expt.
...
Made possible by the fix to its dynamic behavior.
Should be fully backwards compatible.
2015-12-02 15:44:23 -06:00
Sam Tobin-Hochstadt
600935aae1
Don't report duplicate error messages.
2015-12-02 11:00:47 -05:00
Sam Tobin-Hochstadt
9c1569646e
Construct syntax to be checked with source locations.
...
Closes #258 .
2015-12-01 14:22:16 -05:00
Sam Tobin-Hochstadt
ab4514bb56
Use symbols instead of identifiers for poorly-printing struct types.
...
This case only comes up when something else unfortunate has happened
with type printing, but the current implementation can lead to paths
in the type printing.
2015-11-30 17:55:26 -05:00
Vincent St-Amour
1d69569382
Fix tests.
2015-11-30 07:56:08 -06:00
Vincent St-Amour
781e0504bb
Type of expt was overly optimistic.
2015-11-29 15:47:33 -06:00
Andrew Kent
581469e749
removed scope structs from types
2015-11-28 15:04:03 -05:00
Matthew Flatt
c4f39433e1
refine the type of collect-garbage
...
The `collect-garbage` function now accepts a mode argument.
2015-11-27 06:57:37 -07:00
Vincent St-Amour
6a8c366210
Fix type of expt
to reflect fix to dynamic behavior.
2015-11-25 17:33:00 -06:00
Vincent St-Amour
fe4808f96a
Fix magnitude on numbers with negative components.
...
Closes PR 15183.
2015-11-23 14:30:20 -06:00
Georges Dupéron
0201de0466
Improved error messages given by typed/racket, by always including the type name and arguments in the error message.
...
When a typing error is located inside macro-expanded code, a message such as “wrong number of arguments to polymorphic type: expected 1 and got 2” does not help much in locating which instantiation is wrong.
2015-11-20 14:08:33 +01:00
Sam Tobin-Hochstadt
f9825cb250
Add test for top-level mutated var fix.
2015-11-18 14:31:48 -05:00
Sam Tobin-Hochstadt
9fc2c5b3c3
Fix mutated variable handling at the top level.
2015-11-18 13:16:41 -05:00
Sam Tobin-Hochstadt
f7123b8e57
Fix build dep.
2015-11-16 12:58:44 -05:00
Sam Tobin-Hochstadt
577ab41da6
Keep ignored provide forms in the output.
...
Closes #231 .
2015-11-16 09:45:08 -05:00
Jordan Johnson
46836184f2
Document types exported by wrapper libs.
...
This includes types for all wrapper libs that define types, except for
typed/pict, typed/racket/*, and typed/syntax/stx.
2015-11-15 23:38:38 -08:00
Jordan Johnson
ea9467c826
net/url: fix PortT/Bytes, HTTP-Connection
...
* PortT/Bytes now correctly lists the Bytes parameter as _not_ optional. (For that matter, so does PortT/String.)
* HTTP-Connection was defined as an opaque type in net/url, but really is the same type defined in net/http-client, so now it is imported from there.
2015-11-15 20:12:11 -08:00
Sam Tobin-Hochstadt
0e23bb48cb
Add missing file.
2015-11-14 20:49:30 -05:00
Sam Tobin-Hochstadt
71b6fc456c
Progress towards deterministic TR compilation.
...
Traverse many dictionaries in sorted order when generating
residual code.
Closes racket/racket#1138 .
2015-11-14 20:32:05 -05:00
Leif Andersen
4af7c9d10e
Fix typo in the docs.
...
p -> pt
(Thanks to Ben Chung for finding it.)
2015-11-13 14:06:14 -05:00
Vincent St-Amour
1e32397658
Refine type for expt.
...
Fixes rsound.
2015-11-13 10:14:39 -06:00
Sam Tobin-Hochstadt
5f39bb3647
Increase with-tr-contracts timeout.
2015-11-12 18:41:52 -05:00
Matthew Flatt
265453def2
remove redundant doc lists for typed/openssl
2015-11-12 15:57:12 -07:00
Vincent St-Amour
1187281bf7
Fix sign propagation in some real-complex corner cases.
...
May have been found using random testing a while back.
2015-11-12 16:08:20 -06:00
Vincent St-Amour
fb3dee24db
Avoid double coercion.
2015-11-12 16:01:21 -06:00
Vincent St-Amour
b88b4a8829
Fix magnitude opt to not overflow.
...
May have been found with random testing, a while ago.
2015-11-12 15:36:44 -06:00
Vincent St-Amour
53e501bb8b
Avoid generating contraints for optimized-away contract definitions.
...
Closes #214 .
2015-11-12 13:46:37 -06:00
Earl Dean
be29c556cd
added missing optional checked aurgument to Checkable-Menu-Item% in gui-types.rkt
2015-11-12 12:14:30 -05:00
Vincent St-Amour
bcd5fe531d
Document for/and and co as not working.
2015-11-11 13:30:24 -06:00
Vincent St-Amour
3c1c5b1d03
Be more robust against one of {TR,R} erroring.
2015-11-10 16:39:18 -06:00
Eric Dobson
c9db5dded7
Make infer/dotted instantiate the dotted variable to improve inference.
...
With this we don't need to infer the length of the dotted variable,
in parts of the inference.
Closes #120 .
2015-11-10 16:56:14 -05:00
Sam Tobin-Hochstadt
4b9689e88a
Revise docs for minor improvements in support.
...
Closes #137 .
2015-11-10 16:40:22 -05:00
Matthew Butterick
e27a1e24df
Clarification of for/
forms
...
Make it explicit in the docs that `for/vector`, `for/flvector`, `for/first`, `for/last`, and `for/and` aren't yet supported by the typechecker.
2015-11-10 16:34:50 -05:00
WarGrey Gyoudmon Ju
dc73660242
Add typed/web-server/http.rkt, typed/web-server/configuration/responders.rkt
...
Closes #153 .
2015-11-10 16:32:20 -05:00
Spencer Florence
e0cbc15625
fix a bug where cover+tests could call syntax-local-introduce
when not transforming
...
Closes #204 .
2015-11-10 16:32:09 -05:00
Sam Tobin-Hochstadt
6cbd6d872f
Remove obsolete comment.
2015-11-10 13:24:52 -05:00
Sam Tobin-Hochstadt
93507eb519
Avoid doing too much duplicate typechecking work.
2015-11-10 13:23:39 -05:00