Immutable-binding diagnostic
ASPL 0.7.0 · Current release
Complete source and a checked ASPL 0.7.0 outcome.
On this page
Purpose and outcome
This is an intentional source failure with immutable-assignment. Inspect the primary span. This diagnostic supplies no automatic edit; manually replace let or دع with var or متغير, or open corrected source as a separate draft.
See Diagnostics and correction.
Arabic source
This is a supplied complete source. Opening creates a new draft; Run requires an explicit action.
Execution: Browser and native · ASPL 0.7.0
- No prior knowledge is required to open and check it.
Input: No input lines are required.
دالة ابدأ_الرئيسية() -> ص64 {
دع قيمة = 0.
قيمة = 1.
أرجع قيمة.
}
Expected outcomes
{
"browser": {
"check": "source-error",
"class": "source-error",
"output": "",
"reason": "immutable-assignment"
},
"native": {
"check": 1,
"status": 1,
"output": "",
"reason": "immutable-assignment"
}
}English source
This is a supplied complete source. Opening creates a new draft; Run requires an explicit action.
Execution: Browser and native · ASPL 0.7.0
- No prior knowledge is required to open and check it.
Input: No input lines are required.
fn start_main() -> i64 {
let value = 0;
value = 1;
return value;
}
Expected outcomes
{
"browser": {
"check": "source-error",
"class": "source-error",
"output": "",
"reason": "immutable-assignment"
},
"native": {
"check": 1,
"status": 1,
"output": "",
"reason": "immutable-assignment"
}
}Check the result
The source card shows hosts, input, and expected outcomes from the canonical catalog. Reading language changes neither source nor result.