[Mono-bugs] [Bug 677874] New: Multiple bugs within the new Mono.CSharp compiler as a service.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 8 15:00:02 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=677874

https://bugzilla.novell.com/show_bug.cgi?id=677874#c0


           Summary: Multiple bugs within the new Mono.CSharp compiler as a
                    service.
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: monobugs at ahzf.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16

Hi, thanks for the cool new featues :)!

But I still have some problems when playing with an the adopted the runcs demo
which can be found here: http://github.com/ahzf/pipes.NET
Just start the PipesShell example.

First adding the same reference assembly will lead to delayed errors instead of
complaining just in time.

Second calling methods having param parameters will not work unless I wrapp
them into an array. E.g.:
PipesShell> var f0 = _Graph.GetVertices(new VertexId(1)); // params seem to
fail!
PipesShell> var f1 = _Graph.GetVertices(new VertexId[] { new VertexId(1) }); //
This is will work!

Third calling extension methods seems to fail as the methods can not be found:
PipesShell> var f3 = g.GetVertices(new VertexId[] { new VertexId(1)
}).OutEdges().InVertex().GetProperty<string>("name").ToList();
{interactive}(1,61): error CS1061: Type
`System.Collections.Generic.IEnumerable<de.ahzf.blueprints.ivertex>' does not
contain a definition for `OutEdges' and no extension method `OutEdges' of type
`System.Collections.Generic.IEnumerable<de.ahzf.blueprints.ivertex>' could be
found (are you missing a using directive or an assembly reference?)
(Location of the symbol related to previous error)
{interactive}(1,2): error CS0825: The contextual keyword `var' may only appear
within a local variable declaration


Reproducible: Always

Steps to Reproduce:
1. Adding the same reference assembly will lead to delayed errors instead of
complaining just in time.
2. Compiling a method having parms parameter fails.
3. Calling extension methods seems to fail as the methods can not be found.
Actual Results:  
1. Delayed errors.
2. Does not compile.
2. Does not compile.

Expected Results:  
1. In-time errors.
2. Must compile.
2. Must compile.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list