Hamish Knight
f8ab391737
Introduce type sugar for InlineArray ( #80087 )
...
* [CS] Decline to handle InlineArray in shrink
Previously we would try the contextual type `(<int>, <element>)`,
which is wrong. Given we want to eliminate shrink, let's just bail.
* [Sema] Sink `ValueMatchVisitor` into `applyUnboundGenericArguments`
Make sure it's called for sugar code paths too. Also let's just always
run it since it should be a pretty cheap check.
* [Sema] Diagnose passing integer to non-integer type parameter
This was previously missed, though would have been diagnosed later
as a requirement failure.
* [Parse] Split up `canParseType`
While here, address the FIXME in `canParseTypeSimpleOrComposition`
and only check to see if we can parse a type-simple, including
`each`, `some`, and `any` for better recovery.
* Introduce type sugar for InlineArray
Parse e.g `[3 x Int]` as type sugar for InlineArray. Gated behind
an experimental feature flag for now.
2025-03-23 15:31:37 -07:00
..
2025-03-20 12:28:39 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-06-11 11:54:00 -07:00
2024-06-13 15:20:18 -07:00
2024-04-22 12:07:31 -07:00
2025-01-16 16:58:57 -08:00
2024-12-09 12:30:03 -08:00
2024-12-06 09:31:04 -08:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-10-25 16:50:20 -07:00
2024-11-02 11:46:46 -07:00
2024-11-05 14:37:56 -08:00
2024-11-05 14:37:56 -08:00
2024-11-05 14:37:56 -08:00
2024-08-07 14:01:30 -07:00
2024-08-07 14:01:30 -07:00
2024-08-21 11:38:54 -07:00
2024-12-06 09:31:04 -08:00
2025-03-07 19:44:48 -08:00
2024-11-12 11:34:25 -08:00
2024-10-01 09:07:56 -07:00
2025-02-28 09:18:38 -08:00
2025-02-27 23:07:55 -08:00
2025-03-07 19:44:48 -08:00
2024-10-22 08:39:30 -07:00
2024-08-21 11:38:54 -07:00
2024-08-21 11:38:54 -07:00
2024-06-18 22:09:16 -07:00
2024-09-25 23:18:25 +02:00
2024-11-12 11:34:25 -08:00
2024-11-12 11:34:25 -08:00
2025-02-20 22:42:00 -08:00
2025-03-07 17:43:51 -08:00
2024-07-11 14:04:38 -07:00
2025-03-07 19:44:48 -08:00
2025-01-20 18:27:45 -08:00
2024-08-21 10:22:07 -07:00
2024-08-21 11:38:54 -07:00
2024-08-21 11:38:54 -07:00
2025-03-05 07:15:15 -08:00
2025-03-07 19:44:48 -08:00
2024-11-06 16:08:57 -08:00
2025-03-19 11:59:04 -07:00
2024-05-20 17:22:47 -07:00
2024-04-25 11:44:15 -07:00
2024-04-25 11:44:15 -07:00
2024-04-25 11:44:15 -07:00
2025-03-19 11:59:04 -07:00
2024-11-18 18:09:19 -08:00
2024-09-25 23:18:25 +02:00
2025-02-27 10:03:37 -08:00
2025-02-27 10:03:37 -08:00
2024-08-07 14:01:30 -07:00
2024-06-18 21:58:39 -07:00
2024-08-07 14:01:30 -07:00
2024-09-10 10:35:05 -07:00
2024-08-07 14:01:30 -07:00
2024-06-12 14:44:22 -07:00
2025-02-20 22:42:00 -08:00
2024-03-15 06:59:37 -07:00
2024-08-07 14:01:30 -07:00
2024-07-24 16:05:47 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-07-10 14:02:10 -07:00
2024-07-10 14:02:10 -07:00
2024-07-23 11:05:33 -07:00
2024-07-23 11:05:33 -07:00
2024-11-11 18:34:01 -08:00
2024-09-25 23:18:25 +02:00
2024-09-25 23:18:25 +02:00
2025-01-21 21:41:00 +00:00
2024-11-02 11:46:46 -07:00
2024-09-12 13:46:02 -07:00
2024-09-12 13:46:02 -07:00
2024-08-27 14:02:37 -07:00
2024-11-11 19:29:59 +00:00
2024-11-02 11:46:46 -07:00
2025-02-16 12:20:48 -08:00
2024-08-07 14:01:30 -07:00
2024-08-07 14:01:30 -07:00
2024-08-12 14:01:22 -07:00
2025-03-05 09:33:24 -05:00
2024-08-30 21:26:44 -07:00
2024-05-20 22:06:40 -07:00
2025-03-15 00:40:59 +01:00
2024-08-21 11:38:54 -07:00
2024-09-26 18:10:38 -07:00
2024-11-22 12:08:19 -08:00
2024-08-09 16:23:47 +01:00
2024-11-02 11:46:46 -07:00
2024-08-16 16:29:30 -07:00
2024-11-02 11:46:46 -07:00
2024-09-05 10:40:36 -07:00
2024-10-25 16:50:20 -07:00
2024-04-22 14:44:44 -07:00
2024-04-22 14:44:44 -07:00
2024-04-22 14:44:44 -07:00
2024-04-22 14:44:44 -07:00
2024-04-22 14:44:44 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2025-03-19 11:59:04 -07:00
2025-03-23 15:31:37 -07:00
2025-03-23 15:31:37 -07:00
2024-11-18 18:09:19 -08:00
2025-02-04 20:26:12 -05:00
2024-08-02 15:12:52 -04:00
2024-08-31 12:47:46 +01:00
2025-03-18 13:47:00 -07:00
2025-03-19 11:59:04 -07:00
2025-03-19 11:59:04 -07:00
2025-03-20 12:28:39 -07:00
2025-03-19 22:22:21 -07:00
2025-03-19 22:22:21 -07:00
2025-03-19 22:22:21 -07:00
2025-03-19 22:22:21 -07:00
2025-03-19 11:59:04 -07:00
2024-04-22 14:44:44 -07:00
2024-06-13 15:20:18 -07:00
2024-10-25 16:50:20 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-09-24 13:59:29 -07:00
2024-08-06 16:06:53 -07:00
2024-10-19 12:35:20 -07:00
2024-07-23 11:05:33 -07:00
2024-07-23 11:05:33 -07:00
2024-07-23 11:05:33 -07:00
2024-07-23 11:05:33 -07:00
2024-11-02 11:46:46 -07:00
2024-07-23 11:05:33 -07:00
2024-11-02 11:46:46 -07:00
2024-07-23 11:05:33 -07:00
2024-12-02 16:54:13 -05:00
2024-11-21 18:49:52 +01:00
2024-07-23 11:05:33 -07:00
2025-03-11 17:18:44 -04:00
2024-12-17 23:03:38 +00:00
2024-11-06 11:16:18 -08:00
2024-04-18 16:29:34 -07:00
2024-06-13 15:20:18 -07:00
2024-07-07 23:42:33 +01:00
2025-01-16 16:58:57 -08:00
2024-12-09 17:15:15 -08:00
2024-10-25 16:50:20 -07:00
2025-01-08 14:31:12 -05:00
2025-02-06 14:04:28 -08:00
2024-09-11 13:12:58 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-04-22 11:09:12 -07:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2024-04-22 14:44:44 -07:00
2024-11-02 11:46:46 -07:00
2024-10-26 09:26:39 -07:00
2024-10-26 09:26:39 -07:00
2024-10-26 09:26:39 -07:00
2024-09-25 23:18:25 +02:00
2024-11-12 13:59:39 -08:00
2024-05-08 10:49:12 -07:00
2025-03-17 14:03:52 -07:00
2025-03-17 14:03:52 -07:00
2025-02-12 10:53:33 -08:00
2024-11-02 11:46:46 -07:00
2025-02-14 15:01:10 -08:00
2025-02-12 07:13:58 -08:00
2025-02-27 10:03:37 -08:00
2025-03-23 15:31:37 -07:00