[Mono-bugs] [Bug 639010] New: "dynamic" type not working in C# REPL
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 13 15:09:25 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=639010
https://bugzilla.novell.com/show_bug.cgi?id=639010#c0
Summary: "dynamic" type not working in C# REPL
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: 64bit
OS/Version: Windows Vista
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: robreiss at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Community User
Blocker: ---
Description of Problem:
"dynamic" type not working in C# REPL
Steps to reproduce the problem:
(Use C# REPL console, using mono c# compiler as service on top of Microsoft
Net 4.0 runtime):
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> dynamic a = 4;
Actual Results:
{interactive}(1,10): error CS8088: Your .NET Runtime does not support ``void'
or
`void*' field type'. Please use the latest Mono runtime instead.
System.NullReferenceException: Object reference not set to an instance of an
obj
ect.
at Mono.CSharp.PredefinedAttribute.EmitAttribute(FieldBuilder builder) in
C:\
Users\RobReiss\Downloads\mono-mono-2f1c4b3\mcs\mcs\attribute.cs:line 1789
at Mono.CSharp.FieldBase.Emit() in
C:\Users\RobReiss\Downloads\mono-mono-2f1c
4b3\mcs\mcs\field.cs:line 211
at Mono.CSharp.TypeContainer.EmitType() in
C:\Users\RobReiss\Downloads\mono-m
ono-2f1c4b3\mcs\mcs\class.cs:line 1842
at Mono.CSharp.RootContext.EmitCode() in
C:\Users\RobReiss\Downloads\mono-mon
o-2f1c4b3\mcs\mcs\rootcontext.cs:line 340
at Mono.CSharp.Evaluator.CompileBlock(Class host, Undo undo, Report Report)
i
n C:\Users\RobReiss\Downloads\mono-mono-2f1c4b3\mcs\mcs\eval.cs:line 741
at Mono.CSharp.Evaluator.Compile(String input, CompiledMethod& compiled) in
C
:\Users\RobReiss\Downloads\mono-mono-2f1c4b3\mcs\mcs\eval.cs:line 291
at Mono.CSharp.Evaluator.Evaluate(String input, Object& result, Boolean&
resu
lt_set) in C:\Users\RobReiss\Downloads\mono-mono-2f1c4b3\mcs\mcs\eval.cs:line
36
4
at Mono.CSharpShell.Evaluate(String input) in
C:\Users\RobReiss\Downloads\mon
o-mono-2f1c4b3\mcs\tools\csharp\repl.cs:line 291
Expected Results:
expected no error with variable "a" set to int 4
How often does this happen?
Every time
Additional Information:
Running on Microsoft .Net runtime not mono runtime.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list