-
Notifications
You must be signed in to change notification settings - Fork 21
java.lang.IllegalAccessError when matching refined type in App #5134
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5134?orig=1
|
@odersky said: |
Michael Purcell (mpurcell) said (edited on Jan 30, 2013 4:48:24 AM UTC): Good afternoon, let me preface my comment by saying that I am new to the scala language, so I apologize anything I post is in bad form. Anyway, I have been encountering the same problem with implicit definitions that have default parameters as such: object Main extends App { After invokation the program crashes with (full stack trace available in attachment): I have attached the full source used to reproduce this problem. Thanks, |
@adriaanm said: |
@adriaanm said: |
@adriaanm said: Welcome to Scala version 2.11.0-M8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.
scala> scala> object Test extends App {
// Detected repl transcript paste: ctrl-D to finish.
| def b= new AnyRef {
| def a= ()
| }
| b.a match { case _ => () }
| }
defined module Test
scala> Test
// Replaying 2 commands from transcript.
scala> object Test extends App {
def b= new AnyRef {
def a= ()
}
b.a match { case _ => () }
}
warning: there were 1 feature warning(s); re-run with -feature for details
defined object Test
scala> Test
res0: Test.type = Test$@b08f1ce
|
@retronym said: |
The same exception is thrown if the code is compiled and run.
The text was updated successfully, but these errors were encountered: