diff options
| author | azidar | 2015-08-04 12:32:45 -0700 |
|---|---|---|
| committer | azidar | 2015-08-04 12:32:45 -0700 |
| commit | 45a54fadf735742b819590f3209224636e56c715 (patch) | |
| tree | 025d0b33f7e1455d25adbffc2ec7c419e1a2053a /src/main/stanza/errors.stanza | |
| parent | ff6dfecf42560ed2e2eb678adc9ca8d868a472bd (diff) | |
Fixed reading from instance's input ports. Fixed unique naming bug.
Diffstat (limited to 'src/main/stanza/errors.stanza')
| -rw-r--r-- | src/main/stanza/errors.stanza | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/stanza/errors.stanza b/src/main/stanza/errors.stanza index 5212bcb5..edb9928e 100644 --- a/src/main/stanza/errors.stanza +++ b/src/main/stanza/errors.stanza @@ -735,7 +735,7 @@ public defn check-genders (c:Circuit) -> Circuit : [MALE, FEMALE] : add(errors,WrongGender(info,to-symbol(e),as-srcsnk(desired),as-srcsnk(gender))) [FEMALE, MALE] : - if kind* != PortKind() : + if kind* != PortKind() and kind* != InstanceKind(): add(errors,WrongGender(info,to-symbol(e),as-srcsnk(desired),as-srcsnk(gender))) else : false @@ -801,7 +801,6 @@ public defn check-genders (c:Circuit) -> Circuit : match(m) : (m:ExModule) : false (m:InModule) : check-genders-s(body(m),genders) - println(genders) throw(PassExceptions(errors)) when not empty?(errors) c |
