public override void Validate(Context context, JsxProperty property) { IType actual = type is MethodType?property.checkProto(context, (MethodType)type) : property.check(context); if (!type.isAssignableFrom(context, actual)) { throw new SyntaxError("IllegalAssignment: " + type.ToString() + " " + actual.ToString()); } }