Skip to content

peer type resolution for optional slice and single-pointer-to-array #4767

@andrewrk

Description

@andrewrk

Extracted from #4752.

As an example, try removing this @as cast here:

break :blk @as([]u8, &line_buf); // TODO the cast should not be necessary

It gives:

lib/std/net.zig:819:60: error: incompatible types: '*[512]u8' and '?[]u8'

The first step to solving this is a self-contained reduced behavior test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.stage1The process of building from source via WebAssembly and the C backend.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions