-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-csharp/svcerrors-warnings/subsvcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Description
As a first-time user of this feature, the example did not help me understand this message! The example makes no attempt to use MyClass. Here's a much clearer version of the code examples:
// CS0430_a.cs
// compile with: /target:library
public class MyClass
{
public static void M() { /*...*/ }
}
// CS0430_b.cs
extern alias MyType; // CS0430
public class Test
{
public static void Main() { MyType::MyClass.M(); }
}
It likely will be useful to also add something like this to https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/extern-alias, which doesn't quite complete the picture.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 41bfc7b3-4b5d-8a60-7e81-d8819004624d
- Version Independent ID: 53f81f1e-147f-db79-3fda-65c068b2b294
- Content: Compiler Error CS0430
- Content Source: docs/csharp/misc/cs0430.md
- Product: dotnet-csharp
- Technology: csharp-diagnostics
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
Copilot
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-csharp/svcerrors-warnings/subsvcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Type
Projects
Status
✅ Done