Skip to content

Commit 992150b

Browse files
Update exhaustivity tests for loosen rules
1 parent f889bf8 commit 992150b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/patmat/andtype-opentype-interaction.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
27: Pattern Match Exhaustivity: _: Trait & OpenTrait & OpenTrait2, _: Clazz & OpenTrait & OpenTrait2, _: AbstractClass & OpenTrait & OpenTrait2, _: SealedClass & OpenTrait & OpenTrait2
33
31: Pattern Match Exhaustivity: _: Trait & OpenClass
44
35: Pattern Match Exhaustivity: _: Trait & OpenTrait & OpenClass
5+
39: Pattern Match Exhaustivity: _: Trait & OpenClass & (OpenTrait & OpenClass2)
56
43: Pattern Match Exhaustivity: _: Trait & OpenAbstractClass
67
47: Pattern Match Exhaustivity: _: Trait & OpenClass & (OpenTrait & OpenClassSubclass)

tests/patmat/andtype-refinedtype-interaction.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
32: Pattern Match Exhaustivity: _: Trait & C1{x: Int}
22
48: Pattern Match Exhaustivity: _: Trait & (C1 | (C2 | T1)){x: Int} & (C3 | (C4 | T2)){x: Int}, _: Clazz & (C1 | (C2 | T1)){x: Int} & (C3 | (C4 | T2)){x: Int}
33
54: Pattern Match Exhaustivity: _: Trait & (C1 | (C2 | T1)){x: Int} & C3{x: Int}
4+
59: Pattern Match Exhaustivity: _: Trait & (C1 & C2){x: Int}
45
65: Pattern Match Exhaustivity: _: Trait & (C1 | C2){x: Int} & (C3 | SubC1){x: Int}
56
72: Pattern Match Exhaustivity: _: Trait & (T1 & (C1 | SubC2)){x: Int} & (T2 & (C2 | C3 | SubC1)){x: Int} &
67
SubSubC1{x: Int}

0 commit comments

Comments
 (0)