Skip to content

Commit c070e70

Browse files
committed
address review
1 parent e7c9fce commit c070e70

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

tests/neg/i5044.scala

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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] = i5.I2[T, String]
17+
val i4 = new A[Int]
18+
val i5 = 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+
}

tests/neg/i5044a.scala

-7
This file was deleted.

tests/neg/i5044b.scala

-8
This file was deleted.

0 commit comments

Comments
 (0)