You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ scalac Foo.scala
$ scalac Test.scala
-- [E006] Not Found Error: Test.scala:1:25 -------------------------------------
1 |@main def Test = println(Foo().it)
| ^^^
| Not found: Foo
|
| longer explanation available when compiling with `-explain`
1 error found
Expectation
I understand that supporting @targetName on class/trait/object is intentional (see #11969 (comment)), thus I would expect such usage to work with separate compilation.
Remarks
No issue with joint compilation.
No issue if Foo is an inner class.