Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scala what does this mean? "{ /* compiled code */ }"

Tags:

scala

I came across this thing multiple times: { /* compiled code */ } but I can't find what it does in scala.

example:

object autoImport extends scala.AnyRef {
    ...
    val destination : sbt.SettingKey[java.io.File] = { /* compiled code */ }
    ...

}
like image 391
MrBouh Avatar asked Apr 30 '26 09:04

MrBouh


1 Answers

It doesn't do anything. It's your IDE telling you that it can't find the source code for the given method and thus can't show it to you.

That's assuming you're looking at a class file in your IDE. If you're looking at actual Scala code, it's just an empty method with a severely misleading comment.

like image 106
sepp2k Avatar answered May 02 '26 02:05

sepp2k



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!