Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This diagnostic occurs when you have a decorator that is expecting to be followed by a param
or type
declaration, but miss the declaration.
Expected a parameter or type declaration after the decorator.
Error
The following example raises the diagnostic because there is no parameter or type declaration after the @secure()
decorator.
@secure()
You can fix the diagnostic by removing the decorator and adding a parameter of type declaration.
@secure()
param password string
For more information, see Decorators.
For more information about Bicep diagnostics, see Bicep core diagnostics.