Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless error message when miniboxing class #160

Open
VladUreche opened this issue Dec 7, 2014 · 0 comments
Open

Useless error message when miniboxing class #160

VladUreche opened this issue Dec 7, 2014 · 0 comments

Comments

@VladUreche
Copy link
Member

$ 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.

@VladUreche VladUreche self-assigned this Dec 7, 2014
@VladUreche VladUreche added this to the 0.4 milestone Dec 7, 2014
@VladUreche VladUreche modified the milestones: 0.4, 0.5 Dec 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant