diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-05 01:23:45 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-10 17:03:13 -0700 |
commit | 4c04213b991596aa73dec3aa34cb8816a277f538 (patch) | |
tree | 43cd57d3a86004c044a641c4af71d162306f844c /test/pending/pos/t5265.scala | |
parent | e8ec9ea46910756d8391078b1cec976f30407dc6 (diff) | |
download | scala-4c04213b991596aa73dec3aa34cb8816a277f538.tar.gz scala-4c04213b991596aa73dec3aa34cb8816a277f538.tar.bz2 scala-4c04213b991596aa73dec3aa34cb8816a277f538.zip |
Test cases.
Closes SI-4482, SI-4651, SI-3702.
Pending tests for SI-1832, SI-3439, SI-5091, SI-5231, SI-5265.
Diffstat (limited to 'test/pending/pos/t5265.scala')
-rw-r--r-- | test/pending/pos/t5265.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pending/pos/t5265.scala b/test/pending/pos/t5265.scala new file mode 100644 index 0000000000..3be7d2187e --- /dev/null +++ b/test/pending/pos/t5265.scala @@ -0,0 +1,21 @@ +import java.util.Date + +trait TDate + +trait TT[A1,T1] + +trait TTFactory[F,G] { + def create(f: F) : TT[F,G] + def sample: F +} + +object Impls { + + // If the c1 is declared before c2, it compiles fine + implicit def c2(s: Date) = c1.create(s) + + implicit val c1 = new TTFactory[Date,TDate] { + def create(v: Date): TT[Date,TDate] = sys.error("") + def sample = new Date + } +}
\ No newline at end of file |