diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-23 08:18:17 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-23 08:43:09 -0700 |
commit | 006e12a119e6fd5fc40584d4edb4c11f4ffdf7f9 (patch) | |
tree | 8c61c9cdb58a99a43b8cf828a7f2eb93f36215f3 /test/files | |
parent | d3bb612195dbaa8996ff98187cd51452a5f72f6c (diff) | |
download | scala-006e12a119e6fd5fc40584d4edb4c11f4ffdf7f9.tar.gz scala-006e12a119e6fd5fc40584d4edb4c11f4ffdf7f9.tar.bz2 scala-006e12a119e6fd5fc40584d4edb4c11f4ffdf7f9.zip |
Relax -Xlint warning for implicit classes. Closes SI-5809.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t5809.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t5809.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t5809.flags b/test/files/pos/t5809.flags new file mode 100644 index 0000000000..e93641e931 --- /dev/null +++ b/test/files/pos/t5809.flags @@ -0,0 +1 @@ +-Xlint -Xfatal-warnings
\ No newline at end of file diff --git a/test/files/pos/t5809.scala b/test/files/pos/t5809.scala new file mode 100644 index 0000000000..8f6ce708d2 --- /dev/null +++ b/test/files/pos/t5809.scala @@ -0,0 +1,10 @@ +package scala.reflect + +package object api { + implicit class PimpedExpr[T](expr: Universe # Expr[T]) { + def runtimeEval: T = { + println("hello, dear") + expr.eval + } + } +}
\ No newline at end of file |