We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c9fce commit c070e70Copy full SHA for c070e70
tests/neg/i5044.scala
@@ -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
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
24
25
26
+}
tests/neg/i5044a.scala
tests/neg/i5044b.scala
0 commit comments