Sam Tobin-Hochstadt
5e1b355e32
Syntax for predicates with non-empty paths
...
svn: r17660
2010-01-14 23:17:56 +00:00
Sam Tobin-Hochstadt
d69c96cf06
update to the final version of this code
...
svn: r17658
2010-01-14 22:09:31 +00:00
Sam Tobin-Hochstadt
104adf9c62
Types for the other `check-expect'-style forms.
...
svn: r17657
2010-01-14 21:24:47 +00:00
Sam Tobin-Hochstadt
1ab2a41092
Paths for first' and
rest'
...
svn: r17654
2010-01-14 20:00:37 +00:00
Sam Tobin-Hochstadt
33592b4f6c
Typecheck `or' correctly.
...
svn: r17653
2010-01-14 19:53:28 +00:00
Sam Tobin-Hochstadt
4fa4f6fd2d
Propogate expected type through `reverse'.
...
New loop special case for `for/list'.
svn: r17609
2010-01-11 20:48:26 +00:00
Sam Tobin-Hochstadt
f13453e889
`andmap' now works as a predicate in Typed Scheme
...
svn: r17575
2010-01-08 19:05:58 +00:00
Sam Tobin-Hochstadt
05a0e722f9
use of member, memq, memv as predicates working properly
...
svn: r17568
2010-01-08 15:55:32 +00:00
Sam Tobin-Hochstadt
0d46fcb48a
Create new `typed/test-engine' collection.
...
Remove dependence of `typed-scheme' on `test-engine'.
svn: r17567
2010-01-08 15:38:17 +00:00
Sam Tobin-Hochstadt
b7f9899439
`member' can now be used a predicate.
...
svn: r17554
2010-01-07 22:11:54 +00:00
Sam Tobin-Hochstadt
eaad64d612
Better error message for functions that don't have the same arity as
...
the expected.
Add some tests for errors.
svn: r17551
2010-01-07 21:45:57 +00:00
Sam Tobin-Hochstadt
08457d35e3
Improve error messages in the simple case.
...
Change 'typecheck to Type Checker in error messages.
svn: r17542
2010-01-07 19:41:42 +00:00
Sam Tobin-Hochstadt
a8e1c829c2
Fix `type-apply'
...
Fix duplicate filters
svn: r17522
2010-01-07 00:55:51 +00:00
Sam Tobin-Hochstadt
c7cb124c95
Put dynamic behavior of `check-expect' into functions.
...
Give those functions types.
svn: r17519
2010-01-06 23:03:08 +00:00
Sam Tobin-Hochstadt
b9fd34b925
Fix type of string->number
...
svn: r17313
2009-12-15 22:03:10 +00:00
Sam Tobin-Hochstadt
22903bffcd
Fix handling of logical props in `tc-if'.
...
New numeric hierarchy.
Quoted lists and vectors now use the expected type, and quoted lists have (List a b c) type.
Fix some contracts.
More general handling of polymorphic function application.
Use `make-provide/contract-transformer' to generate correct blame for typed provided identifiers.
Add mutable pairs.
Use `raise-syntax-error' for better error messages in mzscheme.
Use `match*' instead of `list'
Some fixes to appease the contract checking.
Catch-all printing cases.
Use names in Base contract generation.
Types for lots of new primitives.
Move numeric primitives to their own file.
Move indexing primites to their own abstracted file.
Better error message from `define-struct:'
Fix 'insert-large-letters.ss' for new Number hierarchy.
Add `typed/scheme' and `typed/scheme/base', which use new number hierarcy types, stricter indexing types.
svn: r17284
2009-12-13 04:45:17 +00:00
Sam Tobin-Hochstadt
3e497704aa
fix unit tests
...
svn: r17269
2009-12-11 17:01:55 +00:00
Sam Tobin-Hochstadt
791ec55787
fixes
...
svn: r17265
2009-12-11 00:25:59 +00:00
Sam Tobin-Hochstadt
5767e23d87
checkpoint
...
svn: r17258
2009-12-10 15:32:17 +00:00
Sam Tobin-Hochstadt
cd0a94d465
sync to trunk
...
svn: r17249
2009-12-09 19:44:12 +00:00
Sam Tobin-Hochstadt
be77cee733
Fix parsing of quoted lists in types to produce list types.
...
svn: r17237
2009-12-07 15:50:51 +00:00
Sam Tobin-Hochstadt
70f085713d
PR 10647
...
svn: r17235
2009-12-07 13:55:36 +00:00
Sam Tobin-Hochstadt
e3bafbe298
checkpoint
...
svn: r17054
2009-11-25 02:30:41 +00:00
Sam Tobin-Hochstadt
29c4a84183
checkpoint
...
svn: r17045
2009-11-24 17:10:44 +00:00
Sam Tobin-Hochstadt
5ea3e28078
check that we get correct blame
...
svn: r16950
2009-11-21 23:24:02 +00:00
Sam Tobin-Hochstadt
750c971d07
checkpoint
...
svn: r16931
2009-11-21 00:11:37 +00:00
Sam Tobin-Hochstadt
6497745560
Skip backup files in tests.
...
More specific numeric types.
More subtyping relationships.
svn: r16922
2009-11-20 15:20:23 +00:00
Sam Tobin-Hochstadt
485c8a3567
checkpoint
...
svn: r16915
2009-11-20 05:20:23 +00:00
Sam Tobin-Hochstadt
1da2c7cd7d
many fixes
...
svn: r16913
2009-11-20 03:56:57 +00:00
Eli Barzilay
0c0945bb08
properly disable TS tests on cgc
...
svn: r16842
2009-11-17 20:02:07 +00:00
Sam Tobin-Hochstadt
25f9bcfe03
Add types for with-output-to-string, open-output-nowhere
...
Fix time.ss test not to print
svn: r16790
2009-11-15 22:38:30 +00:00
Sam Tobin-Hochstadt
36bceaa463
disable compilation of test files to avoid drdr race condition
...
svn: r16663
2009-11-10 20:10:47 +00:00
Sam Tobin-Hochstadt
f29e01029c
Fix drdr props for more files.
...
Fix requires in TS tests.
svn: r16635
2009-11-09 17:06:12 +00:00
Eli Barzilay
44d88cee6b
newlines at EOFs
...
svn: r16630
2009-11-09 03:49:50 +00:00
Sam Tobin-Hochstadt
40bc4cb77a
remove dead examples
...
svn: r16480
2009-10-30 16:27:55 +00:00
Sam Tobin-Hochstadt
93a504a817
Add failing test to xfail.
...
Remove old dead code.
svn: r16479
2009-10-30 16:26:48 +00:00
Sam Tobin-Hochstadt
a3082cba0b
fix test result
...
svn: r16398
2009-10-21 14:46:36 +00:00
Sam Tobin-Hochstadt
37106bd6f7
Add `typed/scheme/system'
...
Special handling of (letrec ([x e]) x)
Allow functions with optional keyword args to be inferred when kws not supplied.
Infer instantiations for kw functions in simple cases.
Add `Path-String' type
Fix types of `filter', `with-{input-to,output-from}-file'
Add `port->lines'
New 'metrics.ss' test
svn: r16385
2009-10-20 18:30:37 +00:00
Sam Tobin-Hochstadt
6a83901a8b
Don't error for branches with wrong number of results where return type is Bot.
...
Allow case-lambda to be subtype of equiv union type.
Add types for path?, fold-files, assert
svn: r16357
2009-10-18 01:10:00 +00:00
Sam Tobin-Hochstadt
6efd0abc13
Fix bug with use of match with ... and annotation.
...
svn: r16216
2009-10-02 16:20:30 +00:00
Sam Tobin-Hochstadt
49b30f9055
Remove obselete file.
...
Use syntax/parse instead of stxclass.
svn: r15983
2009-09-11 22:17:45 +00:00
Sam Tobin-Hochstadt
4907d266df
Move parse-type2 to parse-type.
...
Re-enable typed-scheme tests automatically.
svn: r15924
2009-09-08 20:02:03 +00:00
Sam Tobin-Hochstadt
63d318fd4b
New type parser, written using syntax/parse.
...
- uses keywords with bindings
- : macro in separate file so it can be used earlier
- internal function in separate file
FilterSet/c and LatentFilterSet/c contracts
Avoid returning #f when `look-for-in-orig' fails
Add type for unsafe-cdr
svn: r15923
2009-09-08 19:51:34 +00:00
Sam Tobin-Hochstadt
9e25d28a28
remove extra whitespace
...
svn: r15863
2009-09-03 07:53:39 +00:00
Sam Tobin-Hochstadt
95cb438a9c
New tests
...
svn: r15856
2009-09-01 22:22:37 +00:00
Sam Tobin-Hochstadt
1ea71ea94b
New contracts for hashtables, vectors, boxes
...
svn: r15646
2009-07-30 21:15:16 +00:00
Eli Barzilay
a70bf64fd9
Newlines at EOFs
...
svn: r15380
2009-07-04 02:28:31 +00:00
Sam Tobin-Hochstadt
cfd65e7fa2
Use vector-immutableof' and
box-immutable/c' to handle boxes and vectors.
...
svn: r15199
2009-06-17 20:49:13 +00:00
Carl Eastlund
6ae56e5348
Added a test for new datum->syntax type clauses.
...
svn: r15159
2009-06-12 23:36:08 +00:00
Sam Tobin-Hochstadt
7b82069fa0
Add NoFilter and NoObject to represent no information about filter/object.
...
Handle these properly in check-below (with test).
Use NoFilter and NoObject to make if typechecking work properly with filters.
Reject mismatched filters/objects (with test).
New version of require/typed that handles opaque and struct requires.
Reorganize docs around this.
svn: r15155
2009-06-12 19:04:39 +00:00