cool-easter-32542
05/27/2024, 9:45 AMpackage foo
trait Bar
and
`src/scala/foo/Baz.scala`:
package foo
trait Baz { self: Bar =>
}
Pants should be able to detect that there is a dependency from src/scala/foo/Baz.scala to src/scala/foo/Bar.scala as Baz is consuming the Bar trait as a self-type and both live in the same package.
Pants version
2.21.0rc0 but also present in main
OS
both
Additional info
At the moment the Scala dependency inference parser ignores self-types so the dependency needs to added manually.
pantsbuild/pantscool-easter-32542
05/28/2024, 7:29 AM