consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

Conditional expression is not work inside interpolation string #539

Closed VISTALL closed 4 years ago

VISTALL commented 4 years ago
using System;

class Example {
    static void Main() {

        string o = "'";
        Console.WriteLine($"test {o.Length == 1 ? "one" : "zero"}");
    }

}
VISTALL commented 4 years ago

fixed by

https://github.com/consulo/consulo-csharp/commit/e0c85802bb26547f007ac0f6e3cb9cf51576ac2d