File tree Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 1+ class I0 {
2+ class I1
3+ def test0 = {
4+ val x = new y.I1 // error: `y` is a forward reference extending over the definition of `x`
5+ val y = new I0
6+ }
7+
8+ def test1 = {
9+ type T = y.I1
10+ val x = new T // error: `y` is a forward reference extending over the definition of `x`
11+ val y = new I0
12+ }
13+
14+ class I2 [T1 , T2 ]
15+ def test2 = {
16+ type A [T ] = y.I2 [T , String ]
17+ val x = new A [Int ] // error: `y` is a forward reference extending over the definition of `x`
18+ val y = new I0
19+ }
20+
21+ def test3 = {
22+ val x = new T // error: `T` is a forward reference extending over the definition of `x`
23+ val y = new I0
24+ type T = y.I1
25+ }
26+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments