Skip to content

Runtime validation for list mutation #140

@heshanpadmasiri

Description

@heshanpadmasiri

We should detect illegal mutations of lists at runtime.

import ballerina/io;

public function main() {
    int[] arr = [4, 5, 6];
    any[] a = arr;
    a[2] = 1.2; // @panic
    io:println(a);
}

This would need #109

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackendChange is purely for runtime

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions