comparison types.js @ 103:182c311a9fed

Fix variance of lambda parameters
author Mike Pavone <pavone@retrodev.com>
date Thu, 09 Aug 2012 19:26:21 -0700
parents 92ff9630897a
children 09b65b364927
comparison
equal deleted inserted replaced
102:92ff9630897a 103:182c311a9fed
152 if (!(type.callable) || this.params.length != type.params.length) { 152 if (!(type.callable) || this.params.length != type.params.length) {
153 ret = false; 153 ret = false;
154 } 154 }
155 if (ret) { 155 if (ret) {
156 for (var i in this.params) { 156 for (var i in this.params) {
157 if (i >= type.params.length || !this.params[i].satisfiedBy(type.params[i])) { 157 if (i >= type.params.length || !type.params[i].satisfiedBy(this.params[i])) {
158 ret = false; 158 ret = false;
159 break; 159 break;
160 } 160 }
161 } 161 }
162 } 162 }