[Mono-bugs] [Bug 676476] New: multibyte character in character literal produces CS1012, while MS Implementation does not.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 2 16:59:43 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=676476
https://bugzilla.novell.com/show_bug.cgi?id=676476#c0
Summary: multibyte character in character literal produces
CS1012, while MS Implementation does not.
Classification: Mono
Product: Mono: Compilers
Version: 2.10.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: himajin100000 at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b13pre) Gecko/20110302
Firefox/4.0b13pre Firefox/4.0b13pre
if you use a multibyte character for char literal, compilation fails producing
"CS1012 Too many characters in character literal" and "CS1525 Unexpected symbol
`<internal>'"
Reproducible: Always
Steps to Reproduce:
1. try to compile the following code.
class Z{
public static void Main(){
char x = '●';
}
}
Actual Results:
prog.cs(3,28): error CS1012: Too many characters in character literal
prog.cs(3,30): error CS1525: Unexpected symbol `<internal>'
Compilation failed: 2 error(s), 0 warnings
as shown in http://ideone.com/uEtdX
Expected Results:
sourcecode compiles successfully.
--
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