[Mono-list] Possible minor compiler bug?

Ian Norton inb at ncipher.com
Mon Sep 27 06:19:19 EDT 2010


Hello, A colleague of mine noticed some odd behaviour today ( not actual
code, just an example ).

On windows .net compilers  the following works:

var x = (string)string.Format("Foo");
var y = (String)string.Format("Baa");

But on mono ( I have 2.6.4 ) only the former works, we see:

csharp> var x = (String)string.Format("foo"); 
{interactive}(1,23): error CS1525: Unexpected symbol `string'

Should I submit a bug report or does this look familiar already? (my
google foo is failing me today)

Regards

Ian




-- 
Ian Norton <inb at ncipher.com>
THALES nCIPHER



More information about the Mono-list mailing list