|
Scala example source code file (bug210.scala)
The Scala bug210.scala source code
trait Lang1 {
trait Exp;
trait Visitor { def f(left: Exp): Unit }
class Eval1 extends Visitor { self: Visitor =>
def f(left: Exp) = ()
}
}
trait Lang2 extends Lang1 {
class Eval2 extends Eval1 { self: Visitor => }
}
/*
object Main with App {
val lang2 = new Lang2 {}
val eval = new lang2.Eval2
}
*/
Other Scala examples (source code examples)Here is a short list of links related to this Scala bug210.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.