-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:inlinearea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.exp:advancedhelp wanteditype:enhancement
Description
minimized code
object Test {
private class A() { def test = 42 }
inline def foo: Int = A().test
}
@main def main = Test.foo
https://scastie.scala-lang.org/or0Eg6u9Tky1ImaUNEdOug
Compilation output
class A in object Test cannot be accessed as a member of (Test : Test.type) from module class main$package$.
expectation
This should compile, or at least report an error at the definition site of the inline
method (similarly to how errors are reported when classes leak private val references), not at call sites.
Metadata
Metadata
Assignees
Labels
area:inlinearea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.exp:advancedhelp wanteditype:enhancement