diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-23 15:37:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-23 15:37:20 +0000 |
commit | 3926c98936f79d25e1fcd2e0c206e3cb35f7ada8 (patch) | |
tree | 8dc794a7d48d470c4c750f9cc04b1efcf1d98c8d /test/files | |
parent | 42a111ba41ce2f551d56ccde8ca878f1da27a0b4 (diff) | |
download | scala-3926c98936f79d25e1fcd2e0c206e3cb35f7ada8.tar.gz scala-3926c98936f79d25e1fcd2e0c206e3cb35f7ada8.tar.bz2 scala-3926c98936f79d25e1fcd2e0c206e3cb35f7ada8.zip |
Parser fix involving backquoted identifiers (#2...
Parser fix involving backquoted identifiers (#2514) plus test case.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug2514.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/bug2514.scala b/test/files/run/bug2514.scala new file mode 100644 index 0000000000..e23b441ecf --- /dev/null +++ b/test/files/run/bug2514.scala @@ -0,0 +1,15 @@ +object Test +{ + implicit def x[A](a: A) = new { def xx = a } + + def main(args: Array[String]): Unit = { + val r1 = 12 xx; + val r2 = 12.xx + val r3 = 12.`xx` + val r4 = 12.xx + 12.xx + val r5 = 12.`xx` + 12.xx + val r6 = 12.3.`xx` + 12.xx + + assert(r5 == 24) + } +}
\ No newline at end of file |