-
Notifications
You must be signed in to change notification settings - Fork 10
[Bug]Using Compiler Declarative #Const throw Invalid syntax #96
Copy link
Copy link
Open
Description
Describe the bug
Using Compiler Declaratives within code throw Error
Duplicate declaration 'name' in current scope.
Invalid syntax: #Const DBG = False Or DBGALL
To Reproduce
write Code
Code (if relevant)
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "name"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Option Explicit
#Const DBG = False Or DBGALL
Expected behavior
#Const is a legal syntax (also #if, #else, #elseif, #endif and maybe others)
Screenshots
Additional context
probably the logical operator 'Or' in above example maybe the issue, but this is legal
DBGALL is defined in Projectproperties

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels