[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class type2.cs,NONE,1.1 type
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class type2.cs,NONE,1.1 type2.il,NONE,1.1 type2.jl,NONE,1.1 |
Date: |
Thu, 08 May 2003 11:32:53 -0400 |
Update of /cvsroot/dotgnu-pnet/cscctest/csharp/class
In directory subversions:/tmp/cvs-serv21080/csharp/class
Added Files:
type2.cs type2.il type2.jl
Log Message:
type vs local variable collisions
--- NEW FILE ---
/*
* type2.cs - Test resolution ambiguity .
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
public class Parent
{
public class Nested
{
}
public Nested nested=null;
}
public class Test
{
public static void Main()
{
Parent parent=null;
Parent.Nested[] ue = new Parent.Nested[12];
Parent.Nested a= parent.nested;
}
}
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'Parent' extends ['.library']'System'.'Object'
{
.class nested public auto ansi 'Nested' extends ['.library']'System'.'Object'
{
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
{
ldarg.0
call instance void ['.library']'System'.'Object'::'.ctor'()
ret
.maxstack 1
} // method .ctor
} // class Nested
.field public class 'Parent'/'Nested' 'nested'
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
{
ldarg.0
ldnull
stfld class 'Parent'/'Nested' 'Parent'::'nested'
ldarg.0
call instance void ['.library']'System'.'Object'::'.ctor'()
ret
.maxstack 2
} // method .ctor
} // class Parent
.class public auto ansi 'Test' extends ['.library']'System'.'Object'
{
.method public static hidebysig void 'Main'() cil managed
{
.locals init (class 'Parent', class 'Parent'/'Nested'[], class
'Parent'/'Nested')
ldnull
stloc.0
ldc.i4.s 12
newarr 'Parent'/'Nested'
stloc.1
ldloc.0
ldfld class 'Parent'/'Nested' 'Parent'::'nested'
stloc.2
ret
.maxstack 1
} // method Main
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
{
ldarg.0
call instance void ['.library']'System'.'Object'::'.ctor'()
ret
.maxstack 1
} // method .ctor
} // class Test
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'Parent' extends ['.library']'System'.'Object'
{
.class nested public auto ansi 'Nested' extends ['.library']'System'.'Object'
{
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
{
aload_0
invokespecial instance void ['.library']'System'.'Object'::'.ctor'()
return
.locals 1
.maxstack 1
} // method .ctor
} // class Nested
.field public class 'Parent'/'Nested' 'nested'
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
{
aload_0
aconst_null
putfield class 'Parent'/'Nested' 'Parent'::'nested'
aload_0
invokespecial instance void ['.library']'System'.'Object'::'.ctor'()
return
.locals 1
.maxstack 2
} // method .ctor
} // class Parent
.class public auto ansi 'Test' extends ['.library']'System'.'Object'
{
.method public static hidebysig void 'Main'() cil managed java
{
aconst_null
astore_0
bipush 12
anewarray class 'Parent'/'Nested'
astore_1
aload_0
getfield class 'Parent'/'Nested' 'Parent'::'nested'
astore_2
return
.locals 3
.maxstack 1
} // method Main
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
{
aload_0
invokespecial instance void ['.library']'System'.'Object'::'.ctor'()
return
.locals 1
.maxstack 1
} // method .ctor
} // class Test
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: cscctest/csharp/class type2.cs,NONE,1.1 type2.il,NONE,1.1 type2.jl,NONE,1.1,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_oper.tc,1.39,1.40 cs_lvalue.tc,1.42,1.43
- Next by Date:
[Dotgnu-pnet-commits] CVS: cscctest ChangeLog,1.150,1.151
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_oper.tc,1.39,1.40 cs_lvalue.tc,1.42,1.43
- Next by thread:
[Dotgnu-pnet-commits] CVS: cscctest ChangeLog,1.150,1.151
- Index(es):