Author: gert
Date: 2007-12-21 16:38:19 -0500 (Fri, 21 Dec 2007)
New Revision: 91791
Added:
trunk/gert/standalone/bug323126/
trunk/gert/standalone/bug323126/default.build
trunk/gert/standalone/bug323126/test.vb
Log:
Added test for bug #323126.
Added: trunk/gert/standalone/bug323126/default.build
===================================================================
--- trunk/gert/standalone/bug323126/default.build 2007-12-21 21:27:37 UTC
(rev 91790)
+++ trunk/gert/standalone/bug323126/default.build 2007-12-21 21:38:19 UTC
(rev 91791)
@@ -0,0 +1,28 @@
+<project name="bug323126" default="rebuild">
+ <include buildfile="../../build/common.build" />
+
+ <property name="frameworks"
value="mono-2.0,mono-3.5,net-1.0,net-1.1,net-2.0,net-3.5" />
+
+ <target name="clean">
+ <delete>
+ <fileset>
+ <include name="out" />
+ <include name="test.exe" />
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="run-test" depends="init">
+ <record name="out" action="Start" />
+ <vbc target="exe" output="test.exe" warnaserror="true"
failonerror="false">
+ <sources>
+ <include name="test.vb" />
+ </sources>
+ </vbc>
+ <record name="out" action="Close" />
+ <fail if="${file::exists('test.exe')}">#1</fail>
+ <fail unless="${file::exists('out')}">#2</fail>
+ <loadfile file="out" property="out" />
+ <fail unless="${string::index-of(out,'30420:')!=-1}">#3</fail>
+ </target>
+</project>
Property changes on: trunk/gert/standalone/bug323126/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug323126/test.vb
===================================================================
--- trunk/gert/standalone/bug323126/test.vb 2007-12-21 21:27:37 UTC (rev
91790)
+++ trunk/gert/standalone/bug323126/test.vb 2007-12-21 21:38:19 UTC (rev
91791)
@@ -0,0 +1,57 @@
+Imports System.Reflection
+
+'Public Interface IBase
+' Sub Test()
+'End Interface
+
+'Public Interface IDerived
+' Inherits IBase
+'End Interface
+
+'Public MustInherit Class A(Of Type)
+' Implements IBase
+
+' Sub Test() Implements IBase.Test
+
+' End Sub
+'End Class
+
+'Public Class B
+' Inherits A(Of Object)
+' Implements IDerived
+
+'End Class
+
+
+Friend MustInherit Class A(Of T)
+ Implements IBase
+
+ ' Methods
+ Public Sub New()
+
+ End Sub
+ Public Overrides Sub Test() Implements IBase.Test
+
+ End Sub
+End Class
+
+Friend Class B
+ Inherits A(Of Object)
+
+ Implements IDerived
+
+ ' Methods
+ Public Sub New()
+
+ End Sub
+End Class
+
+Friend Interface IBase
+ ' Methods
+ Sub Test()
+End Interface
+
+Friend Interface IDerived
+ Inherits IBase
+
+ End Interface
Property changes on: trunk/gert/standalone/bug323126/test.vb
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches