[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_lvalue.tc,1.48,1.49
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_lvalue.tc,1.48,1.49 |
Date: |
Tue, 03 Jun 2003 03:05:24 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv9710/cscc/csharp
Modified Files:
cs_lvalue.tc
Log Message:
Allow enum initializers to add different enum types
Index: cs_lvalue.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_lvalue.tc,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** cs_lvalue.tc 30 May 2003 05:16:00 -0000 1.48
--- cs_lvalue.tc 3 Jun 2003 07:05:22 -0000 1.49
***************
*** 576,579 ****
--- 576,588 ----
type = thisType;
}
+ if(CurrentClassType(info) &&
+
ILTypeIsEnum(CurrentClassType(info)))
+ {
+ /* This is inside a constant
enum declaration ,
+ so use the underlying
type itself , as it
+ will always be constant
folded to the
+ underlying type.*/
+ type =
ILTypeGetEnumType(thisType);
+ }
CSSemSetConstant(value, type,
evalValue);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_lvalue.tc,1.48,1.49,
Gopal.V <address@hidden> <=