Skip to content

An error occurred while trying to compile a function with a return value of VOID in debug mode. #1401

@chen4s666

Description

@chen4s666

Describe the bug
An error occurred while trying to compile a function with a return value of VOID in debug mode.

To Reproduce
The test uses the ST code as follows.
FUNCTION abc : VOID END_FUNCTION

Add the -g argument and compile it.
The error information is as follows.

thread 'main' panicked at src\codegen\debug.rs:522:18: Type should exist at this stage note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

This was supposed to be introduced in #1103

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chen4s666

        Issue actions

          An error occurred while trying to compile a function with a return value of VOID in debug mode. · Issue #1401 · PLC-lang/rusty