diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-09-18 18:06:59 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-09-23 13:23:24 -0700 |
commit | 69ce27434e07c8dc215490256fe51622d768dd7e (patch) | |
tree | 827d13297d325a51af6f16ed856734a2e1583a39 /test/files/neg/t2462c.scala | |
parent | 7d570b54c3c895bc8948adeca2e463d135e38feb (diff) | |
download | scala-69ce27434e07c8dc215490256fe51622d768dd7e.tar.gz scala-69ce27434e07c8dc215490256fe51622d768dd7e.tar.bz2 scala-69ce27434e07c8dc215490256fe51622d768dd7e.zip |
SI-7848 Xlint no warn on $sym with params
This idea brought to you by retronym.
Also improve implicitNotFound detection at typer;
and avoid checking the standard interpolation
expression for cases like s"some $$x".
Some minor refactorings of implicitNotFound strings.
The intersobralator allows extra spaces, i.e., trims.
Diffstat (limited to 'test/files/neg/t2462c.scala')
-rw-r--r-- | test/files/neg/t2462c.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/files/neg/t2462c.scala b/test/files/neg/t2462c.scala new file mode 100644 index 0000000000..acf04afba9 --- /dev/null +++ b/test/files/neg/t2462c.scala @@ -0,0 +1,25 @@ + +import annotation._ + +@implicitNotFound("No C of ${ A }") +class C[A] + +trait X$Y +/* using the $$ separator for expanded names is unwise +trait X$$Y +trait X$$$Y +trait X$$$$Y + */ + +trait Foo[A] + +class Test { + def f[A: C] = ??? + f[X$Y] +/* using the $$ separator for expanded names is unwise + f[X$$Y] + f[X$$$Y] + f[X$$$$Y] + */ + f[Foo[Int]] +} |