Skip to content

Error dissasembling when handling exceptions #10

@rcastano

Description

@rcastano

The following code throws an exception.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class Ex1 : Exception
{

}
class Ex2 : Exception
{

}
class TestExceptionsWhen
{
    public void Main(int y)
    {
        int x = 5;
        try
        {
            x = x / y;
        }
        catch (Exception ex) when (ex is Ex1 || ex is Ex2)
        {

        }
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions