diff options
author | stefanheule <unknown> | 2012-03-09 03:23:21 -0800 |
---|---|---|
committer | stefanheule <unknown> | 2012-03-09 03:23:21 -0800 |
commit | 623d6833f29941c2ba44a962c2fa81d2a02b1c00 (patch) | |
tree | 70f1f26f1a5a1d6ba32e13a22c95b546d1a42f86 /Chalice | |
parent | 80cc590c18bae0b90fd887b3c7af75fdb33bd8e5 (diff) |
Chalice: Temporarily mark refinment extension as unsupported.
Diffstat (limited to 'Chalice')
-rw-r--r-- | Chalice/src/main/scala/Resolver.scala | 9 |
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) {
|