Skip to content
Snippets Groups Projects
Commit 5e8d92e0 authored by Thomas's avatar Thomas
Browse files

Added KindOf check for method parameters

to prevent non rigid types to be assigned to parameter types, which can
only hold rigid types, according to the CROM spec.
parent 2502410a
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ operation source!Shape addOperations(t : target!Type) {
parameter.name = paramName;
var pt = findTypeForName(paramType);
if (not (pt == null)) {
if ((not (pt == null)) and (pt.isKindOf(target!RigidType))) {
parameter.type = pt;
}
op.params.add(parameter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment