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
// Application.scalaobjectApplication {
defmain(arguments: Array[String]):Unit= {
// No warning here
println(library.Library.pleaseInlineMe())
// Could not inline required method pleaseInlineMe because bytecode unavailable.
println(library.Library.Nested.pleaseInlineMe())
}
}
I expect both methods are inlined, but the one in the nested object isn't.
$ sbt compile
[info] Loading global plugins from C:\Users\user\.sbt\0.13\plugins
[info] Set current project to application (in build file:/D:/cygwin/home/user/Documents/inline-nested-object/)
[info] Compiling1Scala source to D:\cygwin\home\user\Documents\inline-nested-object\library\target\scala-2.10\classes...
[info] Compiling1Scala source to D:\cygwin\home\user\Documents\inline-nested-object\target\scala-2.10\classes...
[warn] D:\cygwin\home\user\Documents\inline-nested-object\Application.scala:8:Could not inline required method pleaseInlineMe because bytecode unavailable.
[warn] println(library.Library.Nested.pleaseInlineMe())
[warn] ^
[warn] one warning found
[success] Totaltime: 4 s, completed 2014-4-2216:13:10
The text was updated successfully, but these errors were encountered:
Create the three files:
I expect both methods are inlined, but the one in the nested object isn't.
The text was updated successfully, but these errors were encountered: