Skip to content

Insert spaces when doing rewrite _ to ? #23449

@altrack

Description

@altrack

Compiler version

Scala 3.6.4
rewrite with source 3.6 flag

Minimized code

MyData[_<:T]

Output

Rewrites as following:
LoadedData[?<:T]
And doesn't compile, requires manually adding spaces as follows:
LoadedData[? <: T]

Expectation

Inserts spaces where needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions