Commit Graph

8 Commits

Author SHA1 Message Date
Slava Pestov
b0303bb5a1 Sema: Restore old behavior in ConstraintSystem::openType()
My change to preserve type sugar in type transforms introduced a
performance regression here, because openType() is called for
every disjunction choice.

My hope is to optimize the TypeAliasType representation and remove
this at some point, but for now, let's just restore the old
desugaring behavior in this case.
2024-10-08 11:53:45 -04:00
Slava Pestov
074684fe06 AST: Use TypeTransform::transformSubMap() to transform TypeAliasType 2024-08-21 13:21:47 -04:00
Apollo Zhu
9ccfb574fd Enable SE-0422 Expression macro as caller-side default argument 2024-02-14 19:22:35 -08:00
Apollo Zhu
f5c596ba57 Test access level check 2024-02-06 15:02:16 -08:00
Apollo Zhu
ea35e1bac2 Use Swift Syntax for checking literals 2024-02-06 15:02:15 -08:00
Apollo Zhu
865bf1eceb Test for diagnostics on access level and type 2024-02-06 15:02:15 -08:00
Apollo Zhu
7cc84f6cb2 Disallow string interpolation 2024-02-06 15:02:14 -08:00
Apollo Zhu
cfa044334e Allow literal arguments 2024-02-06 15:02:13 -08:00