View Single Post
  #1 (permalink)  
Old 09-08-2004
damingyipai damingyipai is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 59
exception specification error in slice2cs

hello everyone

the slice:


exception A {
string reason;
};

exception B extends A {};

class Test
{
void foo() throws B, A;
}

I need code is follow:

...
catch(B ex)
{
... }
catch(A ex)
{
.. }

but the code that was generate by slice2cs is:

...
catch(A ex)
{
... }
catch(B ex)
{
.. }


then build error CS0160.

please check this bug, thanks.
Reply With Quote