don't override types parameter

This commit is contained in:
Sebastian McKenzie 2015-06-08 14:59:19 +01:00
parent 7170dbced8
commit 55ad88fe4e

View File

@ -89,7 +89,6 @@ export function getTypeAnnotation(force) {
export function _getTypeAnnotationBindingConstantViolations(name, types = []) {
var binding = this.scope.getBinding(name);
var types = [];
this.typeAnnotation = t.unionTypeAnnotation(types);
for (var constantViolation of (binding.constantViolations: Array)) {