We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
trait Foo[T: ClassTag]() { def foo(x: T) = Array(x) } class Bar extends Foo[Int]()
fails with a java.lang.AbstractMethodError: Method Bar.Foo$$evidence$1()Lscala/reflect/ClassTag; is abstract
java.lang.AbstractMethodError: Method Bar.Foo$$evidence$1()Lscala/reflect/ClassTag; is abstract
Where the tree after genBCode looks like
genBCode
<trait> trait Foo extends Object { def $init$(): Unit = () implicit <accessor> def Foo$$evidence$1(): scala.reflect.ClassTag def foo(x: Object): Object = Array.apply(Predef.genericWrapArray([x : Object]), this.Foo$$evidence$1()) } class Bar extends Object with Foo { def <init>(): Unit = { super() super[Foo].$init$() () } }
The text was updated successfully, but these errors were encountered:
Note that stating the implicit parameter explicitly does work
class Foo[T]()(implicit ct: ClassTag[T]) { def foo(x: T) = Array(x) } class Bar extends Foo[Int]()
Sorry, something went wrong.
6c92dd9
Merge pull request #2798 from dotty-staging/fix-#2795
9513ed2
Fix #2795: Fix name kind testing logic
No branches or pull requests
fails with a
java.lang.AbstractMethodError: Method Bar.Foo$$evidence$1()Lscala/reflect/ClassTag; is abstract
Where the tree after
genBCode
looks likeThe text was updated successfully, but these errors were encountered: