Skip to content

inline method eta-expansion #14449

Closed
@informarte

Description

@informarte

Compiler version

3.1.2-RC1

Minimized code

package MinimizedCode {

    // remove inline to make the code compile
    inline def f(a: Int) = a
    val u = List(0).map(f)

}

Output

[error] 4 |    val u = List(0).map(f)
[error]   |                        ^
[error]   |                   missing arguments for method f in package MinimizedCode

Expectation

Inlining a method should not affect places in the code which reference the method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions