-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
acceptedThis proposal is planned.This proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Description
fn add(a: i32, b: i32) {
var x = a + b;
return x;
}Should give error: x should be declared const
hryx, buster-blue, giann, komuw, artob and 54 moreHadron67, FeldrinH, cdemirer, chpf, booleancoercion and 11 morevi, matu3ba, Evrey, booleancoercion, dgiger42 and 4 moreyohannd1 and gustavojoaquin
Metadata
Metadata
Assignees
Labels
acceptedThis proposal is planned.This proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.