From c21c58031421a3291cfd3c12425d96ecfb8c19f8 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sun, 27 Feb 2011 00:34:57 -0500 Subject: [PATCH] allow This, Global to represent ThisScope, GlobalScope --- main/Scope.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/Scope.scala b/main/Scope.scala index 5962f9dda..2e73e0ea5 100644 --- a/main/Scope.scala +++ b/main/Scope.scala @@ -124,6 +124,11 @@ sealed trait ScopeAxis[+S] { case object This extends ScopeAxis[Nothing] case object Global extends ScopeAxis[Nothing] final case class Select[S](s: S) extends ScopeAxis[S] +object ScopeAxis +{ + implicit def scopeAxisToScope(axis: ScopeAxis[Nothing]): Scope = + Scope(axis, axis, axis, axis) +} final case class ConfigKey(name: String) object ConfigKey