summaryrefslogtreecommitdiff
path: root/Chalice
diff options
context:
space:
mode:
authorGravatar stefanheule <unknown>2012-03-09 03:23:21 -0800
committerGravatar stefanheule <unknown>2012-03-09 03:23:21 -0800
commit623d6833f29941c2ba44a962c2fa81d2a02b1c00 (patch)
tree70f1f26f1a5a1d6ba32e13a22c95b546d1a42f86 /Chalice
parent80cc590c18bae0b90fd887b3c7af75fdb33bd8e5 (diff)
Chalice: Temporarily mark refinment extension as unsupported.
Diffstat (limited to 'Chalice')
-rw-r--r--Chalice/src/main/scala/Resolver.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/Chalice/src/main/scala/Resolver.scala b/Chalice/src/main/scala/Resolver.scala
index 4f812038..7f5b3ecf 100644
--- a/Chalice/src/main/scala/Resolver.scala
+++ b/Chalice/src/main/scala/Resolver.scala
@@ -54,6 +54,15 @@ object Resolver {
}
def Resolve(prog: List[TopLevelDecl]): ResolverOutcome = {
+
+ // check for deprecates and/or unsupported constructs
+ var refinements = false
+ prog map (_ match {
+ case c: Class => if (c.IsRefinement) refinements = true
+ case _ => }
+ )
+ if (refinements) throw new NotSupportedException("stepwise refinements are currently not supported")
+
// register the channels as well as the classes and their members
var decls = Map[String,TopLevelDecl]()
for (decl <- BoolClass :: IntClass :: RootClass :: NullClass :: StringClass :: MuClass :: prog) {