diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-09-09 14:10:53 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-09-09 14:10:53 +0200 |
commit | 6f78b501c226bd3c24c516801a23865531591ebe (patch) | |
tree | 23fb1b3ed1bb2434556edd5c6aed8f35cad49109 /test/files/pos | |
parent | b43b3b0ba8ac55ea9c1727b8a4c5e9ad5696fe6d (diff) | |
download | scala-6f78b501c226bd3c24c516801a23865531591ebe.tar.gz scala-6f78b501c226bd3c24c516801a23865531591ebe.tar.bz2 scala-6f78b501c226bd3c24c516801a23865531591ebe.zip |
More tests for SI-6335.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6335.scala | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/files/pos/t6335.scala b/test/files/pos/t6335.scala index a39c4f27f5..50e34092d1 100644 --- a/test/files/pos/t6335.scala +++ b/test/files/pos/t6335.scala @@ -1,11 +1,25 @@ -object E { +object E extends Z { def X = 3 implicit class X(val i: Int) { def xx = i } + + def Y(a: Any) = 0 + object Y + implicit class Y(val i: String) { def yy = i } + + implicit class Z(val i: Boolean) { def zz = i } +} + +trait Z { + def Z = 0 } object Test { import E._ 0.xx + + "".yy + + true.zz } |