Richard Smith
67d5446b03
Add Self to the name scope for a class. ( #3736 )
...
Rather than just adding `Self` to the lexical scope, add it to the
class's name scope so that it is visible in later lexical scopes for the
same class -- in particular, for out-of-line definitions of members.
Also switch some tests in `check/testdata/class` over to making
idiomatic use of `Self` both inside a class and out-of-line, now that it
works more consistently.
Note that this does not permit using `Class.Self`, but only because we
don't yet support keyword names after `.` at all. If that changed, one
could use `Class.Self` to redundantly refer to `Class`. Whether we allow
that is left to a future decision.
2024-02-29 21:33:47 +00:00
..
2023-08-31 19:54:32 +00:00
2024-02-29 21:33:47 +00:00
2024-02-28 01:56:27 +00:00
2023-09-13 18:27:57 +00:00
2024-02-26 20:24:51 +00:00
2023-11-14 22:24:03 +00:00
2024-02-28 01:56:27 +00:00
2024-02-28 01:56:27 +00:00
2024-02-09 17:26:03 +00:00
2024-01-29 16:15:35 +00:00
2024-02-27 21:28:46 +00:00
2024-02-20 18:43:57 +00:00
2024-02-14 18:33:18 +00:00
2024-02-28 01:56:27 +00:00
2024-01-12 02:56:22 +00:00
2024-02-26 20:24:51 +00:00
2024-01-29 16:15:35 +00:00
2024-02-26 20:24:51 +00:00
2024-02-27 19:58:19 +00:00
2024-01-23 18:22:27 +00:00
2024-02-29 21:33:47 +00:00
2024-02-06 00:59:52 +00:00
2024-01-12 19:01:51 +00:00
2023-12-29 01:28:09 +00:00
2024-02-28 21:28:59 +00:00
2023-12-29 01:28:09 +00:00
2024-01-29 16:15:35 +00:00
2024-02-26 22:55:22 +00:00
2023-12-29 01:28:09 +00:00
2024-02-09 16:25:23 +00:00
2024-02-28 01:56:27 +00:00
2024-02-13 00:53:13 +00:00
2024-02-14 17:47:37 +00:00
2024-01-12 19:01:51 +00:00
2024-02-13 00:27:06 +00:00
2023-12-29 01:28:09 +00:00
2024-02-27 21:28:46 +00:00
2023-12-29 01:28:09 +00:00
2024-01-25 07:29:40 +00:00
2023-12-29 01:28:09 +00:00
2024-02-09 16:25:23 +00:00
2024-02-27 19:58:19 +00:00
2024-02-27 19:58:19 +00:00
2023-12-29 01:28:09 +00:00
2024-02-27 19:58:19 +00:00
2024-02-21 22:03:32 +00:00
2024-02-28 21:28:59 +00:00
2024-02-09 00:11:37 +00:00
2024-02-26 20:24:51 +00:00
2024-01-25 18:19:22 +00:00
2024-02-27 19:58:19 +00:00
2024-02-27 19:58:19 +00:00
2024-02-28 01:56:27 +00:00
2024-02-28 01:56:27 +00:00
2024-01-29 16:15:35 +00:00
2024-01-31 21:40:45 +00:00
2024-01-31 21:40:45 +00:00
2024-02-05 22:07:38 +00:00
2024-02-23 22:07:29 +00:00
2024-02-27 19:58:19 +00:00
2024-02-26 20:24:51 +00:00
2024-02-09 16:25:23 +00:00
2024-01-29 16:15:35 +00:00
2024-01-25 18:19:22 +00:00
2024-02-06 00:59:52 +00:00
2024-02-06 00:59:52 +00:00