null fix
This commit is contained in:
parent
db75737037
commit
76dcc8cbe2
@ -725,7 +725,7 @@ pub fn resolveTypeOfNodeInternal(
|
|||||||
return try resolveUnwrapOptionalType(store, arena, left_type, bound_type_params);
|
return try resolveUnwrapOptionalType(store, arena, left_type, bound_type_params);
|
||||||
},
|
},
|
||||||
.Catch => {
|
.Catch => {
|
||||||
const infix_op = node.cast(ast.Node.SimpleInfixOp).?;
|
const infix_op = node.cast(ast.Node.Catch).?;
|
||||||
const left_type = (try resolveTypeOfNodeInternal(store, arena, .{
|
const left_type = (try resolveTypeOfNodeInternal(store, arena, .{
|
||||||
.node = infix_op.lhs,
|
.node = infix_op.lhs,
|
||||||
.handle = handle,
|
.handle = handle,
|
||||||
|
@ -427,9 +427,9 @@ fn nodeToCompletion(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const prefix_op = node.cast(std.zig.ast.Node.SimplePrefixOp).?;
|
const ptr_type = node.castTag(.PtrType).?;
|
||||||
if (prefix_op.rhs.cast(std.zig.ast.Node.SimplePrefixOp)) |child_pop| {
|
if (ptr_type.rhs.cast(std.zig.ast.Node.SimplePrefixOp)) |child_pop| {
|
||||||
switch (prefix_op.rhs.tag) {
|
switch (ptr_type.rhs.tag) {
|
||||||
.ArrayType => {
|
.ArrayType => {
|
||||||
try list.append(.{
|
try list.append(.{
|
||||||
.label = "len",
|
.label = "len",
|
||||||
|
Loading…
Reference in New Issue
Block a user