File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ -- [E173] Reference Error: tests/neg/i8194.scala:5:22 ------------------------------------------------------------------
2+ 5 |@main def main = Test.foo // error
3+ | ^^^^^^^^
4+ | class A cannot be accessed as a member of (Test : Test.type) from the top-level definitions in package <empty>.
5+ | private class A can only be accessed from object Test.
6+ |---------------------------------------------------------------------------------------------------------------------
7+ |Inline stack trace
8+ |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9+ |This location contains code that was inlined from i8194.scala:3
10+ 3 | inline def foo: Int = A().test
11+ | ^
12+ ---------------------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ object Test {
2+ private class A () { def test = 42 }
3+ inline def foo : Int = A ().test
4+ }
5+ @ main def main = Test .foo // error
You can’t perform that action at this time.
0 commit comments