diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-02 11:19:24 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-02 11:19:24 +0200 |
commit | 97d0953daee190e79de49f5139f2d547aee95268 (patch) | |
tree | 5e9b82d8d2f38a724beb3ac2b73d56818651f541 /test/files/run | |
parent | bb3b08dd675a68c5245a8ad64470c796e346ba91 (diff) | |
parent | f6467d063167da3a34ac92957d3a308d2a230926 (diff) | |
download | scala-97d0953daee190e79de49f5139f2d547aee95268.tar.gz scala-97d0953daee190e79de49f5139f2d547aee95268.tar.bz2 scala-97d0953daee190e79de49f5139f2d547aee95268.zip |
Merge pull request #3948 from retronym/ticket/8823
SI-8823 Exclude specialized methods from extension method rewrite
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t8823.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t8823.scala b/test/files/run/t8823.scala new file mode 100644 index 0000000000..0ac653566a --- /dev/null +++ b/test/files/run/t8823.scala @@ -0,0 +1,10 @@ +class Tuple2Int(val encoding: Long) extends AnyVal with Product2[Int, Int] { + def canEqual(that: Any) = false + def _1: Int = 1 + def _2: Int = 2 +} + +object Test extends App { + assert(new Tuple2Int(0)._1 == 1) + assert(new Tuple2Int(0)._2 == 2) +} |