Skip to content

Commit f077ed9

Browse files
committed
Update expected highlight for union types
1 parent 84c217c commit f077ed9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler/test/dotty/tools/dotc/printing/SyntaxHighlightingTests.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ class SyntaxHighlightingTests extends DottyTest {
8989

9090
@Test
9191
def unionTypes = {
92-
test("type A = String|Int| Long", "<K|type> <T|A> = <T|String>|<T|Int>| <T|Long>")
93-
test("type B = String |Int| Long", "<K|type> <T|B> = <T|String> |<T|Int>| <T|Long>")
94-
test("type C = String | Int | Long", "<K|type> <T|C> = <T|String> | <T|Int> | <T|Long>")
95-
test("type D = String&Int& Long", "<K|type> <T|D> = <T|String>&<T|Int>& <T|Long>")
96-
test("type E = String &Int& Long", "<K|type> <T|E> = <T|String> &<T|Int>& <T|Long>")
97-
test("type F = String & Int & Long", "<K|type> <T|F> = <T|String> & <T|Int> & <T|Long>")
98-
test("fn[String|Char](input)", "fn[<T|String>|<T|Char>](input)")
92+
test("type A = String|Int| Long", "<K|type> <T|A> = <T|String|Int| Long>")
93+
test("type B = String |Int| Long", "<K|type> <T|B> = <T|String |Int| Long>")
94+
test("type C = String | Int | Long", "<K|type> <T|C> = <T|String | Int | Long>")
95+
test("type D = String&Int& Long", "<K|type> <T|D> = <T|String&Int& Long>")
96+
test("type E = String &Int& Long", "<K|type> <T|E> = <T|String &Int& Long>")
97+
test("type F = String & Int & Long", "<K|type> <T|F> = <T|String & Int & Long>")
98+
test("fn[String|Char](input)", "fn[<T|String|Char>](input)")
9999
}
100100
}

0 commit comments

Comments
 (0)