blob: 45f49a33fe6f24d0a144563253ea00c121b19b60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// bug #348
trait Foo {
type bar <: this.Bar;
abstract class Bar;
case class Baz(r:bar) extends this.Bar;
case object NoBar extends this.Bar;
}
object Test extends Application {
object ConcreteFooBar extends Foo { // if moved to toplevel, it works
type bar = Bar;
}
def foo = {
import ConcreteFooBar._ ;
Baz( NoBar )
}
}
// bug #367
object Bla {
def foo(): Unit = (return null).equals(null);
}
|