Skip to content

Commit

Permalink
Check argtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
horasal committed Jan 17, 2015
1 parent a63fdb3 commit ab071ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rock/middle/FunctionDecl.ooc
Expand Up @@ -564,7 +564,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

1 comment on commit ab071ea

@horasal
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this fixes ooc-lang#856
Need more tests...

Please sign in to comment.