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.
The text was updated successfully, but these errors were encountered:
Compiler version
3.2.0-RC1-bin-20220427-b1f00a7-NIGHTLY and earlier
Minimized code
Foo.scala
Test.scala
Output
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.The text was updated successfully, but these errors were encountered: