Skip to content

Issue compiling ternary ifs #5251

Description

@Sporarum

On current master (a6b31a3)

interface I:
    def bar() -> DynArray[uint256, ...]: nonpayable
    def foo(xs: DynArray[uint256, ...][1]): nonpayable

@external
def f(a: address, c: bool, ys: DynArray[uint256, 5][1]):
    extcall I(a).foo([extcall I(a).bar()] if c else ys)

Fails with:

vyper.exceptions.CodegenPanic: DynArray[..., INF] don't have a size!

An xfail test is included in #5233

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug that shouldn't change language semantics when fixed.bug - codegenbug - type 0compiler halts or panics instead of generating codebug - venombug in experimental venom pipelinecodegenissue with codegen

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions