diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-04-01 18:27:58 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-04-01 18:27:58 +0400 |
commit | 6ac185b7934598052c53c85fd27310e5585160d2 (patch) | |
tree | 47dc735a0307a5055b0e952ab2a3dca654cbb2b0 /mcs/errors/cs0208-4.cs | |
parent | 23a4006fdb67a35ee05a8b35d6e0f6dfad112573 (diff) |
In mcs:
2005-04-01 Raja R Harinath <rharinath@novell.com>
Fix #74232 and cs0208-3.cs.
* expression.cs (ComposedCast.DoResolveAsTypeStep): Add CS0208 check.
* typemanager.cs (IsUnmanagedType): Don't allow 'object' as an
unmanaged type. Don't use FieldBuilders when 't' is a
TypeBuilder. Use ModFlags and MemberType fields.
* class.cs (MemberBase.member_type): Rename from MemberType.
(MemberBase.MemberType): New property. Determines member_type on
demand.
(MemberBase.DoDefine): Don't initialize MemberType here.
(FieldMember.Define): Likewise.
In errors:
* TestRunner.cs (TestRunner): Make "KNOWN ISSUE" messages slightly
more verbose.
* cs0208-4.cs: New test from #74232.
svn path=/trunk/mcs/; revision=42462
Diffstat (limited to 'mcs/errors/cs0208-4.cs')
-rw-r--r-- | mcs/errors/cs0208-4.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0208-4.cs b/mcs/errors/cs0208-4.cs new file mode 100644 index 00000000000..846734026e6 --- /dev/null +++ b/mcs/errors/cs0208-4.cs @@ -0,0 +1,15 @@ +// cs0208-4.cs: Cannot declare a pointer to a managed type ('System.Object') +// Line: 11 +// Compiler options: -unsafe + +using System; +using System.Runtime.InteropServices; + +class C +{ + [DllImport ("xml2")] + unsafe static extern object* valuePop (IntPtr context); + public static void Main () + { + } +} |