Skip to content

Commit 8807d8a

Browse files
committed
Move test from repl to pos
The i2554 repl script test had issues, as will be outlined in a separate issue. pos/i2554.scala contains a version of the fixed test.
1 parent 8e1b60d commit 8807d8a

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

compiler/test-resources/repl/i2554

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/pos/i2554.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
object foo {
2+
trait ShapeLevel
3+
trait FlatShapeLevel extends ShapeLevel
4+
trait ColumnsShapeLevel extends FlatShapeLevel
5+
abstract class Shape[Level <: ShapeLevel, -Mixed, Unpacked, Packed]
6+
object Shape extends TupleShapeImplicits
7+
trait TupleShapeImplicits {
8+
implicit final def tuple2Shape[Level <: ShapeLevel, M1,M2, U1,U2, P1,P2](
9+
implicit u1: Shape[_ <: Level, M1, U1, P1], u2: Shape[_ <: Level, M2, U2, P2])
10+
: Shape[Level, (M1,M2), (U1,U2), (P1,P2)] = ???
11+
}
12+
}
13+
object Test {
14+
import foo._
15+
implicit val shape: Shape[_ <: FlatShapeLevel, Int, Int, _] = null
16+
def hint = Shape.tuple2Shape(shape, shape)
17+
val hint2: foo.Shape[foo.FlatShapeLevel, (Int, Int), (Int, Int), _] = hint
18+
}

0 commit comments

Comments
 (0)