Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/neg/i8194.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- [E173] Reference Error: tests/neg/i8194.scala:5:22 ------------------------------------------------------------------
5 |@main def main = Test.foo // error
| ^^^^^^^^
| class A cannot be accessed as a member of (Test : Test.type) from the top-level definitions in package <empty>.
| private class A can only be accessed from object Test.
|---------------------------------------------------------------------------------------------------------------------
|Inline stack trace
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|This location contains code that was inlined from i8194.scala:3
3 | inline def foo: Int = A().test
| ^
---------------------------------------------------------------------------------------------------------------------
5 changes: 5 additions & 0 deletions tests/neg/i8194.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
object Test {
private class A() { def test = 42 }
inline def foo: Int = A().test
}
@main def main = Test.foo // error
Loading