File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
tests/src/test/resources/test-cases Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 11class A()
22class B(val oa: Option[A])
33
4- object TestSome {
5- val a = new A()
6- val b = wire[B]
4+ object TestSomeOption {
5+ val a = new A()
6+ val oa = Some(new A())
7+ val b = wire[B]
8+ }
9+
10+ object TestSomeValue {
11+ val a = new A()
12+ val b = wire[B]
713}
814
915object TestNone {
10- val b = wire[B]
16+ val b = wire[B]
1117}
1218
13- require(TestSome.b.oa.contains(TestSome.a))
19+ require(TestSomeOption.b.oa.contains(TestSomeOption.oa.get))
20+ require(TestSomeValue.b.oa.contains(TestSomeValue.a))
1421require(TestNone.b.oa.isEmpty)
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ class A()
22class B(val oa: Option[Option[A]])
33
44object TestSome {
5- val a = Some(new A())
6- val b = wire[B]
5+ val a = Some(new A())
6+ val b = wire[B]
77}
88
99object TestNestedSome {
10- val a = new A()
11- val b = wire[B]
10+ val a = new A()
11+ val b = wire[B]
1212}
1313
1414object TestNone {
15- val b = wire[B]
15+ val b = wire[B]
1616}
1717
1818require(TestSome.b.oa.contains(TestSome.a))
You can’t perform that action at this time.
0 commit comments