От: | artelk | ||
Дата: | 16.09.13 23:01 | ||
Оценка: |
variant FooBar
{
| Foo
| Bar
}
module Program
{
Main() : void
{
def x : FooBar = FooBar.Foo();
match(x) // <-- warning : matching is not exhaustive, example unmatched value: Foo
{
| Bar => WriteLine("Bar");
}
_ = ReadLine();
}
}