Skip to content

Warn when a lazy val will always be evaluated #26647

Description

@SolalPirelli
class Example:
  lazy val someComputation: Int = ???
  val notLazy: Int = someComputation + 1

It'd be nice to warn here since the "lazy" val will always be forced by the non-lazy one.

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