blob: 3e162cfdba5e505fbaeaf51610f6a101fcf5da68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import scala.tools.partest._
trait BugBase [A, E] {
val key: A
var next: E = _
}
final class Bug[A, B](val key: A) extends BugBase[A, Bug[A, B]] {
def foo = next
}
object Test extends SigTest {
def main(args: Array[String]): Unit = {
show[BugBase[_, _]]()
show[Bug[_, _]]()
}
}
|