रेंडरिंगhi

संरक्षित

Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.

Reserved visibility annotation rejected by semantic analysis.

Aliases: protected

Syntax: @ संरक्षित

Category#

modifier

Examples#

radix/corpus/protecta/protecta.fab (canonical · keyword)#

Reserved visibility annotation rejected by semantic analysis.

# =============================================================================
# संरक्षित — Reserved visibility annotation rejected by semantic analysis.
# =============================================================================
#
# What this teaches:
#   • Reserved keyword — `@ संरक्षित` is syntactically valid but semantically
#     rejected; it has no active visibility meaning
#   • This demonstrates how Faber reserves syntax for future use without
#     committing to semantics
#
# Common mistakes:
#   • Expecting `@ संरक्षित` to provide access control — it is reserved and rejected at compile time (SEM018).
#
# See also: सार्वजनिक, निजी
# =============================================================================

# @ संरक्षित is reserved visibility syntax
#
# This exemplum intentionally fails to compile. `@ संरक्षित` is reserved and
# has no active package, subclass, or sibling-file visibility meaning.
#
# GRAMMAR:
#   annotatedDecl :← '@' 'संरक्षित' funcDecl
#
# EXPECTED ERROR:
#   `@ संरक्षित` is reserved and has no active visibility meaning

@ protected
fn protectum() → string {
    return "protecta"
}

main {
    print protectum()
}