Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial page of CS8802 error #43728

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Nov 23, 2024

This pull request closes #38811

It introduces the page describing CS8802 error along with a simple example and explanation.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/cs8802.md Compiler Error CS8802

@dotnetrepoman dotnetrepoman bot added this to the November 2024 milestone Nov 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Nov 23, 2024

Only one compilation unit can have top-level statements.

This error indicates that there are two or more [top-level statements](../../fundamentals/program-structure/top-level-statements.md) in a single compilation unit (single solution, project or a single group of files compiled into a single binary file).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think "single solution" is right.

---
description: "Compiler Error CS8802"
title: "Compiler Error CS8802"
ms.date: 7/01/2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ms.date: 7/01/2024
ms.date: 11/24/2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error CS8802: Only one compilation unit can have top-level statements.
2 participants