diff --git a/main/Scope.scala b/main/Scope.scala index 8baaf759c..73022d5c3 100644 --- a/main/Scope.scala +++ b/main/Scope.scala @@ -216,7 +216,7 @@ object Scope def linearize[T](axis: ScopeAxis[T], appendGlobal: Boolean = true)(inherit: T => Seq[T]): Seq[ScopeAxis[T]] = axis match { - case Select(x) => topologicalSort(x, appendGlobal)(inherit) + case Select(x) => topologicalSort[T](x, appendGlobal)(inherit) case Global | This => if(appendGlobal) Global :: Nil else Nil }