Open GoogleCodeExporter opened 9 years ago
//And also, this method print "c is String!".
method main()
{
val immutable Character c = "new String";
match (c)
{
case String { printLine("c is String!"); }
case Character { printLine("c is Character!"); }
default { printLine("c is unknown!"); }
};
}
Original comment by akefi...@gmail.com
on 4 Dec 2012 at 12:06
Original issue reported on code.google.com by
akefi...@gmail.com
on 4 Dec 2012 at 12:00