Use keywords instead of literals for communicating
internal information from the TR front-end macro to the
back-end.
original commit: 35af4b726497268957c0a065b473ee9acc13758d
Also handles the case where init and init-field clauses
are interleaved, in which case they need to be interleaved
in the type.
Closes PR 14408
original commit: a21a4a151ace08457a38d2af0664aecf44c30f0a
Certain mutually recursive Name types would generate
contracts that infinite loop when triggered.
original commit: 663e96afd6437bbb26866be1e8fbd9dfeb59582f
This provides a better explanation of contract generation
failures for module-provided bindings.
original commit: 30b60f8c4369972f8fb98732149bd99ce8d9fd98
I'm not sure why, but these tests seem to emit one of two different
errors depending on the machine it's run on (hence the failure in
DrDr). For the short term, I've set the regular expression to allow
either of them.
original commit: e2e0ab748fdd99be105160e9a9706da970f0c5a2
This allows us to type-check non-recursive sequences of
letrec-values clauses in the right order. In other words,
we will type-check the clauses in reverse topological
order (the reverse of the dependency order).
Clauses that are recursive go through the usual
type-checking process, injecting Undefined where necessary.
original commit: 93a2798ec3f41e113a282e10c31473d117f590e5
Split into two passes in order to be able to find
more cases where the RHS doesn't refer to the bindings
in the letrec.
Closes PR 13124
original commit: bdb8833fa501a068f8fcebcf89cbf7c071a6c9c6
The types for racket/gui are substantially complete, but
there are still some missing classes and methods.
Some interesting future work would be to ensure type coverage
by comparing the class members vs. the types in the environment.
That could be run as a test to ensure it stays up to date.
Most types for the framework library are still missing.
original commit: 00a3b7cb149ae35c63b9eb64df34d87424407a10
This expands the `Name` type functionality to go
beyond struct names and allows arbitrary recursive
type aliases to use the environment for indirection.
In addition, such aliases can be mutually recursive.
original commit: a8cc430d0fc7090dd758e0f6738296edcb4d8490
Make sure to check that by-name inits are actually accepted
by the superclass and produce a good error when they aren't.
original commit: b0ba3272cb7dadba24b0bcba73128bef3f312d06
Instead of making separate passes over the expressions,
make a single pass to collect necessary information for
type-checking.
This enables simpler processing of type annotations,
super initialization arguments, and other things.
original commit: 0bacba7a68321ff08187d0a5d95b02b8351cdd3f