~duangle/scopes#12: 
premature lifetime end inside label

repro:

using import Box
using import testing

# I use Box here, but seems to happen with any lifetime checked type.
let T = (Box i32)

fn A ()
    label l
        do
            merge l (T)

fn B ()
    label l
        merge l (T)

fn C ()
    label l
        T;

C;
B;
# cannot access value of type (uniqueof <Box i32> 1000) because it has been moved
test-compiler-error
    A;
none
Status
RESOLVED FIXED
Submitter
~radgerayden
Assigned to
No-one
Submitted
2 years ago
Updated
1 year, 10 months ago
Labels
No labels applied.

~radgerayden REPORTED FIXED 1 year, 10 months ago

Fixed in rev 2304 and 2305.

Register here or Log in to comment, or comment via email.