Skip to content

Inline def with inline x: => X parameters do not respect semantics. #1569

Closed
@nicolasstucki

Description

@nicolasstucki
inline def foo(inline n: => Int) = n + n
foo({ println("foo"); 42 })

should print two times "foo" and return 84 but currently it just returns 84 without printing anything.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions