Skip to content

Commit e7782e2

Browse files
committed
fix typecast error from missing type arguments
1 parent a8be169 commit e7782e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hail/src/main/scala/is/hail/expr/ir/Parser.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,29 +1943,29 @@ object IRParser {
19431943
ir_value_expr(ctx)(it).map { ir_ =>
19441944
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
19451945
val Row(starts: IndexedSeq[Long @unchecked], stops: IndexedSeq[Long @unchecked]) =
1946-
CompileAndEvaluate(ctx, ir)
1946+
CompileAndEvaluate[Row](ctx, ir)
19471947
RowIntervalSparsifier(blocksOnly, starts, stops)
19481948
}
19491949
case "PyBandSparsifier" =>
19501950
val blocksOnly = boolean_literal(it)
19511951
punctuation(it, ")")
19521952
ir_value_expr(ctx)(it).map { ir_ =>
19531953
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
1954-
val Row(l: Long, u: Long) = CompileAndEvaluate(ctx, ir)
1954+
val Row(l: Long, u: Long) = CompileAndEvaluate[Row](ctx, ir)
19551955
BandSparsifier(blocksOnly, l, u)
19561956
}
19571957
case "PyPerBlockSparsifier" =>
19581958
punctuation(it, ")")
19591959
ir_value_expr(ctx)(it).map { ir_ =>
19601960
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
1961-
val indices: IndexedSeq[Int] = CompileAndEvaluate(ctx, ir)
1961+
val indices = CompileAndEvaluate[IndexedSeq[Int]](ctx, ir)
19621962
PerBlockSparsifier(indices)
19631963
}
19641964
case "PyRectangleSparsifier" =>
19651965
punctuation(it, ")")
19661966
ir_value_expr(ctx)(it).map { ir_ =>
19671967
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
1968-
val rectangles: IndexedSeq[Long] = CompileAndEvaluate(ctx, ir)
1968+
val rectangles = CompileAndEvaluate[IndexedSeq[Long]](ctx, ir)
19691969
RectangleSparsifier(rectangles.grouped(4).toIndexedSeq)
19701970
}
19711971
case "RowIntervalSparsifier" =>

0 commit comments

Comments
 (0)