li3zhen1
1fa5ac45b4
[CSDiagnostics] Update test cases for variadic generic functions
2024-03-01 21:10:58 -05:00
li3zhen1
00b0491676
[CSDiagnostics] Update UnableToInferGenericPackElementType to accept overloads and update test cases
2024-02-27 20:35:06 -05:00
li3zhen1
4779ddcb8f
[CSDiagnostics] Update test case for callee side notes
2024-02-22 13:14:07 -05:00
Li, Zhen
b44fbf60c6
[CSDiagnostics] Add diags for holes in generic parameter pack
2024-02-21 23:25:25 -05:00
Sima Nerush
b0af0f762d
Update diagnostics
2023-12-03 21:51:40 -08:00
Pavel Yaskevich
bb0cce782f
[TypeChecker] NFC: Add a test-case for rdar://106737972
2023-05-17 09:13:20 -07:00
Pavel Yaskevich
bbe305cd43
[ConstraintSystem] Add same-shape constraint
...
The constraint takes two pack types and makes sure that their
reduced shapes are equal. This helps with diagnostics because
constraint has access to the original pack expansion pattern
types.
2023-05-02 09:32:19 -07:00
Holly Borla
e48a9b5aeb
[NFC] Remove the VariadicGenerics flag from tests that don't use generic types
...
with parameter packs.
2023-04-15 17:48:08 -07:00
Holly Borla
234b5dc660
[SE-0393] Require the repeat keyword for generic requirement expansions.
2023-04-12 22:04:01 -07:00
Sophia Poirier
a3baee9498
[Variadic Generics] fixit to remove keyword 'each' on non-pack types
2023-04-03 17:26:25 -07:00
Sophia Poirier
19e671b5f2
[Variadic Generics] distinctly diagnose more types of pack expansion errors + add fixits
2023-03-20 15:51:19 -07:00
Slava Pestov
2fa344bf85
AST: Tweak some variadic generic diagnostics
2023-03-15 23:04:50 -04:00
Holly Borla
ad3a385cd2
[Sema] Eliminate single-element tuples after parameter pack substitution.
2023-03-02 19:37:52 -08:00
Sophia Poirier
70cffb06f3
[Variadic Generics] type parameter pack syntax change: T... -> each T
2023-03-02 14:42:28 -08:00
Sophia Poirier
e8361dd8cd
[Variadic Generics] fix tests incorrect pack expansion syntax in some tests, but also disable them due to triggering a constraints checker assertion
2023-01-27 16:50:40 -08:00
John McCall
55b72d4eb7
Fix the pretty-printing of pack expansion types to match the current design
2023-01-11 03:11:30 -05:00
Holly Borla
6725f365ba
[Variadic Generics] Update tests for syntax changes.
2023-01-07 09:50:14 -08:00
Holly Borla
89fa17d74c
[Parser] Replace postfix ellipsis with a prefix 'repeat' keyword for pack
...
expansion expressions, and create them in the parser instead of during
pre-checking in the constraint system.
2023-01-07 09:49:14 -08:00
Holly Borla
2df72f6bcc
[ConstraintSystem] Strip pack expansions off of pack reference types in
...
getUnopenedTypeOfReference.
2022-12-20 22:13:40 -05:00
Holly Borla
c1dcb9c6f1
[FrontendOptions] Remove bespoke experimental feature flags for ImplicitSome and
...
VariadicGenerics in favor of -enable-experimental-feature X.
2022-11-11 10:14:08 -08:00
Slava Pestov
c41341d98c
Sema: Fix matchCallArguments() to allow empty pack type bindings
...
Thanks to @hborla for suggesting this fix.
2022-10-21 22:17:08 -04:00
Slava Pestov
74a6350f11
Sema: Split up test/Constraints/type_sequences.swift
2022-10-21 21:55:35 -04:00