blob: 2c54e7b3e953c3d475a37b150db8212704857ff7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package test
final class Test extends PackageProtected {
def bar = foo
}
package another {
object Main {
def bug1(t: Test) {
// Can always be replicated.
println(t.foo)
}
def bug2(t: Test) {
// Conditions to replicate: must use -optimise, class Test must be final
println(t.bar)
//@noinline is a usable workaround
}
def main(args: Array[String]) {
bug1(new Test)
bug2(new Test)
}
}
}
|