Skip to content

Type diff in tuples is wrongly colored #8980

Closed
@rethab

Description

@rethab

When printing the below type diff, the closing square bracket is red, but it should not.

Minimized code

println(DiffUtil.mkColoredTypeDiff("(Foo, Seq[Bar])", "Seq[Bar]")._1)

Output

square-brakcet

Expectation

that square bracket should not be red, because it is part of expected parameter.

Notes

I'd like to fix this (unless this turns out to be a duplicate). I noticed there are no tests for this function. Would it be ok to create some DiffUtil tests? Anything else to consider?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions