Skip to content

Warning for trivial infinite looping method definition #6276

Closed
@scabug

Description

@scabug

This happens to me with embarrassing regularity:

trait A { def a: Int }
def foo(a: Int) {
  new A {
    def a = a
  }
}

A warning would be lovely. If could be cleared with def a = this.a in case someone really wants to use this construct to contribute to global warming.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions