Commit a433169a authored by Rick van der Wal's avatar Rick van der Wal
Browse files

Snake: fixed issue with inner classes not being allowed to depend on JavaFX

parent 9cfdb90d
......@@ -34,7 +34,8 @@ set[Message] aSnake_view_separated(M3 model)
return { error("<getName(model, shapeClass)>: only SnakeGame should use shapes", class)
| class <- classes(model) - permittedClasses
, shapeClass <- shapeClasses
, shapeClass in model.extends[class] || shapeClass in allTypeDependenciesLoc(model, class)
, (shapeClass in model.extends[class] || shapeClass in allTypeDependenciesLoc(model, class))
&& {1 | permitted <- permittedClasses, class in model.containment[permitted]} == {}
};
}
catch e:error(_,_):
......@@ -60,6 +61,7 @@ set[Message] aSnake_controller_separated(M3 model)
| class <- classes(model) - permittedClasses
, eventClass <- eventClasses
, eventClass in allTypeDependenciesLoc(model, class)
&& {1 | permitted <- permittedClasses, class in model.containment[permitted]} == {}
};
}
catch e:error(_,_):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment