Skip to content

[Bug] Top module Const Declaration causes <missing EOF token> error #65

@DecimalTurn

Description

@DecimalTurn

Describe the bug
There is a parsing error with Const at the top of the module

To Reproduce

Code

Attribute VB_Name = "Test"

Option Explicit

Private Const IMPORT_DELAY As String = "00:00:05"

Image

Note that removing the "Private" access modifier fixes the error. However the following still causes an error:

Attribute VB_Name = "Test"

Option Explicit

Const IMPORT_DELAY As String

Image

Expected behavior
There shouldn't be an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions