[svn] r7789: nemerle/trunk/ncc/testsuite/positive/type-alias.n

nazgul svnadmin at nemerle.org
Thu Sep 6 11:55:20 CEST 2007


Log:
Fix for using type alias to generic types in bug 1029. Patch by BOleg

Author: nazgul
Date: Thu Sep  6 11:55:19 2007
New Revision: 7789

Added:
   nemerle/trunk/ncc/testsuite/positive/type-alias.n   (contents, props changed)

Added: nemerle/trunk/ncc/testsuite/positive/type-alias.n
==============================================================================
--- (empty file)
+++ nemerle/trunk/ncc/testsuite/positive/type-alias.n	Thu Sep  6 11:55:19 2007
@@ -0,0 +1,29 @@
+namespace Bug1029 {
+
+  class A {}
+  class B : A {}
+
+  module Foo[T] where T : A {
+      public static foo() : void 
+      {
+        System.Console.WriteLine(typeof(T));
+      }
+  }
+
+  type Bar = Foo[B];
+  using Bar;
+
+  public class ArrayTest
+  {
+    public static Main () : void 
+    {
+      _ = foo();
+    }
+  }
+}
+
+/*
+BEGIN-OUTPUT
+Bug1029.B
+END-OUTPUT
+*/



More information about the svn mailing list