Skip to content

if (condition) // Missing statement here before a closing brace or another keyword else { ... } #46904

Open
@TRIXMI

Description

@TRIXMI

Type of issue

Typo

Description

void myMethod() {
// <statement expected here if the method isn't empty>
}

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/error-messages/end-of-statement-expected

Content source URL

https://github.com/dotnet/docs/blob/main/docs/visual-basic/language-reference/error-messages/end-of-statement-expected.md

Document Version Independent Id

9242d322-2eea-514f-8efa-61d1bad18939

Platform Id

91132b8c-e14a-35a4-1770-1de208e46ecb

Article author

@BillWagner

Metadata

  • ID: 85c5365c-419f-2fb4-889c-10c926c252f1
  • PlatformId: 91132b8c-e14a-35a4-1770-1de208e46ecb
  • Service: dotnet-visualbasic
  • Sub-service: errors-warnings

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions