Skip to content

inline 2 #12

Closed
Closed
@blooddy

Description

@blooddy

Is it possible to add support for inline functions?

export function test(x:i32, y:i32):i32 {
    x = add( x, 1 );
    y = add( y, 1 );
    return add( x, y );
}

inline function add(x:i32, y:i32):i32 {
    return x + y;
}

That should be optimized to

export function test(x:i32, y:i32):i32 {
    x = x + 1;
    y = y + 1;
    return x + y;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions