[svn] r6393: nemerle/trunk/ncc/testsuite/completion-playground/compl3.n

VladD2 svnadmin at nemerle.org
Mon Jun 12 17:01:39 CEST 2006


Log:
Fix a bug in ncc\testsuite\completion-playground\compl3.n

Author: VladD2
Date: Mon Jun 12 17:01:38 2006
New Revision: 6393

Modified:
   nemerle/trunk/ncc/testsuite/completion-playground/compl3.n

Modified: nemerle/trunk/ncc/testsuite/completion-playground/compl3.n
==============================================================================
--- nemerle/trunk/ncc/testsuite/completion-playground/compl3.n	(original)
+++ nemerle/trunk/ncc/testsuite/completion-playground/compl3.n	Mon Jun 12 17:01:38 2006
@@ -149,8 +149,9 @@
 
           foreach (overl in completionResult.Overloads)
           {
-            def isExtension = overl.Member.GetHandle().IsDefined (
-              extensionAttribute, false);
+            //Diagnostics.Debug.Assert(false);
+            def isExtension = try { overl.Member.GetHandle().IsDefined (
+              extensionAttribute, false); } catch { | _ => false };
 
             def typ = if (isExtension)
               match ((overl.Member :> IMethod).GetParameters ())
@@ -175,20 +176,19 @@
 }
 
 //FixMe: Bugs
-try_completion ("Fo?");
-try_completion ("this.Fo?");
 try_completion ("def arr = array[1, 2, 3]; arr.M?");
 try_completion (@"
                 def arr = array['1', '2'];
                 arr.Fold('0', (_, _) => '3').Map?");
 
-
 //TODO: Imlement this.
 try_completion (" ? ");
 try_completion ("def _ = 0; ? ");
 
 
 // Work fine:
+try_completion ("Fo?");
+try_completion ("this.Fo?");
 try_completion (@"
            def x = Dictionary();
            def y = x.Count;



More information about the svn mailing list