Skip to content

Explicit self type can not be found in module #831

Closed
@VladimirNik

Description

@VladimirNik

Example:

object Test { self =>
  def a = 5
  self.a
}

The compilation result is:

Test.scala:3: error: not found: self
  self.a
  ^
one error found

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