File tree 5 files changed +7
-7
lines changed 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ object A { // error
2
2
val a : Int = B .b
3
3
}
4
4
5
- object B { // error
5
+ object B {
6
6
val b : Int = A .a
7
7
}
8
8
Original file line number Diff line number Diff line change 1
1
class IdAndMsg (val id : Int , val msg : String = " " )
2
2
3
3
case object ObjA extends IdAndMsg (1 ) // error
4
- case object ObjB extends IdAndMsg (2 ) // error
4
+ case object ObjB extends IdAndMsg (2 )
5
5
6
6
object IdAndMsg { // error
7
7
val values = List (ObjA , ObjB )
Original file line number Diff line number Diff line change 1
1
object D { // error
2
2
def aaa = 1 // that’s the reason
3
3
class Z (depends : Any )
4
- case object D1 extends Z (aaa) // 'null' when calling D.D1 first time // error
5
- case object D2 extends Z (aaa) // 'null' when calling D.D2 first time // error
4
+ case object D1 extends Z (aaa) // 'null' when calling D.D1 first time
5
+ case object D2 extends Z (aaa) // 'null' when calling D.D2 first time
6
6
println(D1 )
7
7
println(D2 )
8
8
}
Original file line number Diff line number Diff line change 1
1
sealed abstract class OrderType (val reverse : OrderType )
2
2
case object Buy extends OrderType (Sell ) // error
3
- case object Sell extends OrderType (Buy ) // error
3
+ case object Sell extends OrderType (Buy )
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ class BaseClass(s: String) {
5
5
object Obj { // error
6
6
val s : String = " hello"
7
7
8
- object AObj extends BaseClass (s) // error
8
+ object AObj extends BaseClass (s)
9
9
10
- object BObj extends BaseClass (s) // error
10
+ object BObj extends BaseClass (s)
11
11
12
12
val list = List (AObj , BObj )
13
13
You can’t perform that action at this time.
0 commit comments