You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void
Late::visit (AST::PathInExpression &expr)
{
// TODO: How do we have a nice error with `can't capture dynamic environment
// in a function item` error here?
// do we emit it in `get<Namespace::Labels>`?
rust_debug ("[ARTHUR]: %s", expr.as_simple_path ().as_string ().c_str ());
auto value = ctx.values.resolve_path (expr.get_segments ());
if (!value.has_value ())
rust_unreachable (); // Should have been resolved earlier
Test case :
enumMyOption{Some(i32),None,}pubfntoto(i:MyOption) -> i32{ifletMyOption::Some(v) = i {
v
}else{23i32}}
In :
Test case :
Seen in https://rust.godbolt.org/z/1dYfWGY5T
Originally posted by @dkm in #3064 (comment)
The text was updated successfully, but these errors were encountered: