You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have just released Metalama 2024.0.2-preview, which includes all changes from 2024.0.1-preview and 2023.4.6 plus the following:
New
Metalama.Compiler: merge from Roslyn 4.8 preview.
Support for C# 12: work in progress
✔️ Default lambda parameters
✔️ Inline arrays in run-time code
✔️ Allow nameof to always access instance members from a static context
✔️ Primary constructors
✔️ Type aliases.
❌ Inline arrays in compile-time code
❌ Collection expressions (aka collection literals) like [1,2,..array]
❌ AppendParameter advice (used in dependency injection scenarios) in primary constructors (planned for 2024.1).
Code generation for multiple C# versions: Metalama will generate different C# code for projects built with different C# versions. Supported versions are 10, 11, and 12.
Detection of the C# version required by T# templates: an error will now be reported if a project uses a template with features of a higher C# version than the one of the project.
Fixed
In the documentation, the source code (before transformation) is now compiled with design-time artifacts generated by Metalama (i.e., generated partial classes and diagnostic suppressions) and, therefore, no longer contains irrelevant errors and warnings.
Breaking changes
In the RefKind enum, In and RefReadOnly are no longer synonyms.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have just released Metalama 2024.0.2-preview, which includes all changes from 2024.0.1-preview and 2023.4.6 plus the following:
New
Metalama.Compiler
: merge from Roslyn 4.8 preview.Support for C# 12: work in progress
✔️ Default lambda parameters
✔️ Inline arrays in run-time code
✔️ Allow nameof to always access instance members from a static context
✔️ Primary constructors
✔️ Type aliases.
❌ Inline arrays in compile-time code
❌ Collection expressions (aka collection literals) like
[1,2,..array]
❌
AppendParameter
advice (used in dependency injection scenarios) in primary constructors (planned for 2024.1).Code generation for multiple C# versions: Metalama will generate different C# code for projects built with different C# versions. Supported versions are 10, 11, and 12.
Detection of the C# version required by T# templates: an error will now be reported if a project uses a template with features of a higher C# version than the one of the project.
Fixed
Breaking changes
RefKind
enum,In
andRefReadOnly
are no longer synonyms.Beta Was this translation helpful? Give feedback.
All reactions