miniboxing-plugin
miniboxing-plugin copied to clipboard
Useless error message when miniboxing class
$ cat gh-bug-160.scala
package miniboxing.tests.compile.bug160
class C[@miniboxed T] {
private def bar() = 4
def foo = {
// useless error message:
new C[String].bar()
}
}
$ mb-scalac gh-bug-160.scala
gh-bug-160.scala:9: error: [ occured while creating miniboxed method foo in class C_D ]
method bar in class C cannot be accessed in miniboxing.tests.compile.bug160.C[String]
new C[String].bar()
^
one error found
Well, useless because it doesn't explain the problem, otherwise there's clearly a problem there, when you start creating classes C_L
, C_J
and C_D
that can't access the private member in class C.