Skip to content

Commit

Permalink
Check argtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
horasal authored and fasterthanlime committed Jul 8, 2015
1 parent 2cdd92e commit cf69dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rock/middle/FunctionDecl.ooc
Expand Up @@ -571,7 +571,7 @@ FunctionDecl: class extends Declaration {

for(j in 0..fType1 argTypes getSize()) {
type1 := fType1 argTypes[j]
type2 := (fType2 != null && j < fType2 argTypes getSize()) ? fType2 argTypes[j] : null
type2 := (fType2 != null && fType2 argTypes && j < fType2 argTypes getSize()) ? fType2 argTypes[j] : null
if(type2 != null) {
if(!type1 isResolved() || !type2 isResolved()) {
res wholeAgain(this, "should determine interface specialization")
Expand Down

0 comments on commit cf69dd2

Please sign in to comment.