Skip to content

Missing whitespace between new() and where #2825

@yufeih

Description

@yufeih

Steps to reproduce

  1. Create a class like this
[Serializable]
public class Cat<T, K> : ICat
        where T : class, new()
        where K : struct
{ }
  1. View the decompiled code in ILSpy

  2. See that a whitespace is missing between new() and where
    image

  3. Expect a space between similar to other where cases
    image

Details

ILSpy version 7.2.1.6856
.NET version 4.8.9065.0

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