consulo / consulo-csharp

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

Case pattern matching #538

Closed VISTALL closed 4 years ago

VISTALL commented 4 years ago
using System;

class Example {
    static void Main() {

        Object o  = null;

        switch (o) {
            case String s when s.Length == 1: // error
                break;
        }
    }
}