Skip to content

Commit 80a4206

Browse files
committed
Merge branch 'develop-virt-2.11.2' into develop
2 parents d83853c + a7daf01 commit 80a4206

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/common/Structs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ trait StructTags {
3131
case class ClassTag[T](name: String) extends StructTag[T]
3232
case class NestClassTag[C[_],T](elem: StructTag[T]) extends StructTag[C[T]]
3333
case class AnonTag[T](fields: RefinedManifest[T]) extends StructTag[T]
34-
case class MapTag[T] extends StructTag[T]
34+
case class MapTag[T]() extends StructTag[T]
3535
}
3636

3737
trait StructExp extends StructOps with StructTags with BaseExp with EffectExp with VariablesExp with ObjectOpsExp with StringOpsExp with OverloadHack {

test-out/epfl/test14-queries3.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ x2551
6161
End of Generated Code
6262
*******************************************/
6363

64-
warning: there were 9 feature warning(s); re-run with -feature for details
64+
warning: there were 9 feature warnings; re-run with -feature for details
6565
one warning found
6666
compilation: ok
6767
expertise("abstract"):

test-out/epfl/test14-queries4.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ x2551
6161
End of Generated Code
6262
*******************************************/
6363

64-
warning: there were 9 feature warning(s); re-run with -feature for details
64+
warning: there were 9 feature warnings; re-run with -feature for details
6565
one warning found
6666
compilation: ok
6767
expertise2("abstract"):

test-src/epfl/test12-collections/TestList.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestList extends FileDiffSuite {
2222
xs ++ List(unit(1), unit(2), unit(3))
2323

2424
def emptyLeft(xs: Rep[List[Int]]): Rep[List[Int]] =
25-
List() ++ xs
25+
List[Int]() ++ xs // VIRT 2.11: need type annotation
2626

2727
def emptyRight(xs: Rep[List[Int]]): Rep[List[Int]] =
2828
xs ++ List()

test-src/epfl/test14-scratch/TestQueries.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,8 @@ trait StagedExp extends Staged with ScalaOpsPkgExp with BooleanOpsExpOpt with St
799799
*/
800800
case (Empty(),Empty()) => List()
801801
case (IfThen(c,a),Empty()) => if (cond && c) a else List()
802-
case (For(l,f),Empty()) => for (x <- l if cond; y <- f(x)) yield y
802+
case (For(l,f),Empty()) => implicit def unsafe[T] = manifest[Any].asInstanceOf[Manifest[T]] // FIXME: get manifest (for result type) from somewhere else
803+
for (x <- l if cond; y <- f(x)) yield y
803804
case (Concat(a,b),Empty()) => (if (cond) a else List()) ++ (if (cond) b else List())
804805
case _ => super.ifThenElse(cond,thenp,elsep)
805806
}).asInstanceOf[Exp[T]]

0 commit comments

Comments
 (0)