Commit Graph

4531 Commits

Author SHA1 Message Date
Eric Dobson
d31ffab99d Remove check for type-ascription property.
original commit: b57d84dd903b53948ebf3e21fbbe781c10c45501
2014-05-03 14:18:54 -07:00
Eric Dobson
3c49b8e946 Move from type-ascription-property to add-ann.
original commit: 7a7809cdfdcd3d3c41bb043b45066bced66bcaaa
2014-05-03 14:18:54 -07:00
Eric Dobson
04e029797e Make standalone annotation use #f instead of #'#f.
original commit: 4ac26e919a1a6b78d2a0d2ca518909a756bcc831
2014-05-03 14:18:54 -07:00
Sam Tobin-Hochstadt
1a3cdd3594 Typed Racket history for 6.0.1.
Please include in release.

original commit: 31ccd1ba7c98a363fdd4c229a4f652c5d1e12628
2014-05-03 13:38:49 -04:00
Eric Dobson
51a65c6abd Make inst mark the #%expression.
original commit: ee64a152654734b5b91d7822f832bf8e1601aa89
2014-05-02 09:39:18 -07:00
Vincent St-Amour
e3d1f8f0f9 Fix expected source location for improved location preservation.
original commit: 80d1631af8644f8669812cbea0136f73c4e2ce59
2014-05-01 18:04:35 -04:00
Asumu Takikawa
2497d67c6a Add an explanation of the test case for PR 14389
original commit: 947343c63fed6a244013c6b7ac211e6b38d8a8cf
2014-05-01 16:24:42 -04:00
Asumu Takikawa
e9d689cdb9 Don't track syntax with unknown source locations
Avoids recording original syntaxes with a source or position
of #f, since these are usually intermediate syntax pairs that
don't correspond to actual source syntax.

For example, in a (#%module-begin . rst) in a submodule, the
underlying pair may contain an identifier and a cdr that is a
syntax object. That cdr will have #f source and position and also
does not correspond to any source syntax.

Leaving such syntax objects in the table means there are spurious
hits later when a syntax object with an unknown source location
is looked up.

Closes PR 14389

original commit: 06bd5d36af88a99d2f76b65c073da21d63b5ee1f
2014-05-01 16:02:21 -04:00
Vincent St-Amour
2b7423a5e0 Instrument TR casts / asserts for feature-specific profiling.
original commit: 5502bf5b1ba8782badb8ef8a58d3e8ec947418ad
2014-05-01 11:54:09 -04:00
Eric Dobson
f122d7dc54 Make inst not do crazy splitting.
original commit: 4766a944705315f56a27b52f6bffe4abc1475a69
2014-05-01 00:00:50 -07:00
Eric Dobson
9b7f36f7cb Remove extraneous old feature of do-inst.
original commit: a6789164d86118643598ebb3b02500ba4dc6fc87
2014-05-01 00:00:50 -07:00
Eric Dobson
09ecd240d1 Remove #%expression in plambda.
original commit: 379e827070cbfe72c8d099c246e590fb42140257
2014-05-01 00:00:50 -07:00
Eric Dobson
0fa0d624cf Replace 'apply -lst*' with -Tuple*
original commit: 9d1201a5e26e6d22816a607811737b8c0b5f822f
2014-04-30 23:38:55 -07:00
Eric Dobson
163f6c627f Add quotes to error messages from tc-apply.
original commit: 209be3b9ac76ab3d611b5800aae0bd1c77426abf
2014-04-30 23:38:55 -07:00
Eric Dobson
8066e77839 Merge checks for empty case-lambdas in apply.
original commit: de1c9a1162ffd11f4b61229e9a88f367d3cd54f6
2014-04-30 23:38:55 -07:00
Eric Dobson
5e3baa82c9 Cleanup non poly case in apply.
original commit: c91a91212955641e8b7fba1feac6b22b5bd65fab
2014-04-30 23:38:54 -07:00
Eric Dobson
f7380b0a09 Cleanup Poly cases in tc-apply
original commit: ab2877ed7f09dd8e3b2142ea8a1bcc9aa7d3beaa
2014-04-30 23:38:54 -07:00
Eric Dobson
e0a792bd78 Make apply work with more initial args than in the type.
original commit: 33a31d28681d3e382f0395e1fb77f0ccdd6db027
2014-04-30 23:38:54 -07:00
Eric Dobson
34575cbb0f Allow apply to work on lists with minimum length.
original commit: 3e3e79cf1f1fa46f085da41c3f20d7286dc65940
2014-04-30 23:38:54 -07:00
Eric Dobson
b0da322f03 Replace uses of untuple with List:.
original commit: 347b15661a5ed3fb478257618e397c4722e03744
2014-04-30 23:38:54 -07:00
Eric Dobson
3219e6ca6b Cleanup PolyDotted case of apply.
original commit: e6b2268f2ce2d75d06ec8e26ade6b3d4b49667f7
2014-04-30 23:38:54 -07:00
Asumu Takikawa
63e2fa1bda Improve TR's overlap checking for StructTop types
Closes PR 14458

original commit: eb006a0e9ec78d0d0657fbf8587ba8b5106419aa
2014-04-30 15:03:17 -04:00
Eric Dobson
fe6cdbc35b Make tc-results: and Results: not use ... over patterns.
This avoids a case where match is silently wrong.

original commit: 2f032184ca98d02cdf330ac8d3f5095d37c09252
2014-04-30 09:48:39 -07:00
Eric Dobson
22eb5e27b8 Allow more inference on ... lists.
original commit: 78fbdfec0be3d8173856737f46db6809d75e76ed
2014-04-29 22:27:39 -07:00
Asumu Takikawa
ef5b55b293 Refactor TR's no-check-helper module
original commit: f60908c7aa2eebc65a539f215d2a174e1833367c
2014-04-29 22:47:03 -04:00
Asumu Takikawa
bab7477b80 Fix require/typed in no-check mode for structs
The constructor name was handled incorrectly for TR's current
defaults. Also support the extra keyword arguments.

original commit: 6e8ad865240aa9a92b6dd6fef91f42dcb117e4b2
2014-04-29 22:35:17 -04:00
Asumu Takikawa
36a34fd3ea Update require/typed in no-check mode for keywords
Closes PR 14463

original commit: 2a32c588157263489c4928fa90c50409dbb3b87b
2014-04-29 21:28:08 -04:00
Asumu Takikawa
23b147607f Remove code that handles #<undefined> in TR
TR no longer needs to handle #<undefined> because the value
no longer leaks out from uninitialized variables. However, uses
of uninitialized variables are not caught by TR (they are treated
like errors from the `error` function).

original commit: 715d596e47b7c5cbd7b17ff36ceea73678c7071f
2014-04-28 14:14:00 -04:00
Eric Dobson
f49ef7b662 Add tests for new letrec semantics.
Closes existing bugs because the old broken semantics is now right
because of undefined changes.

Closer PR 13303.
Closer PR 13333.

original commit: 8372ee9f6d5a08e6fe89ca681ea63be5ed34496e
2014-04-27 12:51:03 -07:00
Eric Dobson
69f5da8531 Add a test suite for infer.
original commit: d38737836e483b78cc6697a474f9fcb26573d092
2014-04-26 09:48:11 -07:00
Eric Dobson
fcb558d2b1 Fix apply with (Listof A) args.
Closes PR 14465.

original commit: b42e0d8d68f19c4cc80bb23f1cb1a383edeba322
2014-04-25 21:34:27 -07:00
Vincent St-Amour
de03b2dee5 Revert edit to expected result.
original commit: 6341cb3026ca5671dd228d9c110f378b8166c3b5
2014-04-25 16:57:06 -04:00
Vincent St-Amour
9688d1a083 Keep dead case-lambda clauses around to avoid changing arity.
Closes PR14468.

original commit: ce3033a0c7e0c3f0eede89ddd18862161d89e18b
2014-04-25 13:44:56 -04:00
Vincent St-Amour
5af4daf7d9 Avoid precision problems in TR tests.
original commit: d30546cb7ddd80e6fd2eeaa0ab3da7ebfb2f35be
2014-04-24 10:48:26 -04:00
Vincent St-Amour
b00549fc38 Add missing forms to TR docs.
original commit: 842137fc295e98663d1d5ec8f1f5ea188ca014b8
2014-04-24 10:48:26 -04:00
Eric Dobson
9bf4fa62e0 Fix inference for dotted and starred arr types.
original commit: 7a435b154ca517b1fcae2ddd3f4387e8f2f82ef0
2014-04-23 23:57:11 -07:00
Asumu Takikawa
7d10ce5d54 Add remaining racket/list functions to TR base-env
original commit: d731a02fa5d795809eef3b094f8cd10da29e14d1
2014-04-23 18:42:12 -04:00
Vincent St-Amour
6e6538269a Optimize expt on floats.
original commit: 4d36910026c5be17cd2e9b5ac98ace11345659e6
2014-04-23 12:45:37 -04:00
Vincent St-Amour
da4f537424 Be more conservative when reporing potentially exact arithmetic.
original commit: 2adc374fc681d5ab031cf8889103bf77fadabfcc
2014-04-23 12:45:37 -04:00
Vincent St-Amour
a376f2946d Typo.
original commit: e8e007badf3fcc9e64fb5c9f47bbdc2ef870a2ff
2014-04-23 12:45:37 -04:00
Vincent St-Amour
59703ec524 Fix extflonum tests for line numbers.
original commit: 47abc2f00b928088893afdeac0bc6f77478d9f1c
2014-04-23 12:45:37 -04:00
Vincent St-Amour
7ebc2f2f32 Add extflvector optimizations.
original commit: e41e91f55146e735c4dd67d02e0cf4c3c78a1f9a
2014-04-23 12:45:37 -04:00
Vincent St-Amour
a4378704a2 Export the ExtFlVector type.
original commit: e5e5a4547f998da31ad22d9595ee458bc0eecf1e
2014-04-23 12:45:37 -04:00
Vincent St-Amour
236e27b9ec Tests for extflonum optimizations.
original commit: b96776105c0f2bf1ccfec56d10832c0486a181f2
2014-04-23 12:45:37 -04:00
Vincent St-Amour
1d360bdcb0 More extflonum optimizations.
original commit: 0a8b3845dd657865c6b39f83f7226bf952a04ce1
2014-04-23 12:45:36 -04:00
Vincent St-Amour
b5de283ce4 Add missing forms to TR docs.
original commit: 228687226a8269b68dce5b05f2cd81b463621b08
2014-04-23 12:45:36 -04:00
Vincent St-Amour
ebf87fd795 Basic optimizations for extflonums.
original commit: 171d874757ffd111aa3bd5c4d17ca01251144c68
2014-04-23 12:45:36 -04:00
Asumu Takikawa
ff31fe4e07 Re-enable and fix a TR class test
It turns out the test was wrong instead of the implementation.
In particular, it reversed the internal/external name and thus
the error it failed with was correct (though not the intention of
the test).

original commit: e230456fd7fe971204d5c11978e12576d2e4619c
2014-04-23 12:16:20 -04:00
Asumu Takikawa
63efae6fff Remove unnecessary class typechecking code
Also add a test for this part of TR. In particular, it
handles registering syntax definitions that are found in
a class body.

original commit: 92bdd84b079b23f91c0d6088dd5f3690d2d7f796
2014-04-23 12:16:12 -04:00
Vincent St-Amour
ceb3a6d5ef Small oversight in random testing.
original commit: 22ff5d15633968f86e42d3e88b07437608ef2917
2014-04-22 17:25:02 -04:00