Problem parsing square brackets in string literals
Posted: Sat Feb 23, 2008 8:11 am
Cobra 0.7.3, Mono 1.2.6
The following program fails with "error: Expecting an expression" in line 3.
The workaround I am using is:
The following program fails with "error: Expecting an expression" in line 3.
class Program
def main is shared
t = '0123['
print t.indexOf('[')
The workaround I am using is:
class Program
def main is shared
t as String = sharp' "0123[" '
print t.indexOf(sharp' "[" ')