blob: a64a5da85ffd686f1ffb4f6177a828f1e245712d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
abstract.scala:5 error: method bar cannot be accessed in A.this.T
because its instance type ()A.this.T#T contains a malformed type: A.this.T#T
def foo1: A = bar().bar();
^
abstract.scala:6 error: type mismatch;
found : A
required: A.this.T
def foo2: T = bar().baz();
^
abstract.scala:8 error: method bar cannot be accessed in A
because its instance type ()A#T contains a malformed type: A#T
def foo4: A = baz().bar();
^
abstract.scala:9 error: type mismatch;
found : A
required: A.this.T
def foo5: T = baz().baz();
^
four errors found
|