From ab071ea0c4196f8b191505345069f4ee1f8217c7 Mon Sep 17 00:00:00 2001 From: Hongjie Zhai Date: Sat, 17 Jan 2015 16:09:09 +0900 Subject: [PATCH] Check argtypes --- source/rock/middle/FunctionDecl.ooc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rock/middle/FunctionDecl.ooc b/source/rock/middle/FunctionDecl.ooc index 7dccf696..a649acf9 100644 --- a/source/rock/middle/FunctionDecl.ooc +++ b/source/rock/middle/FunctionDecl.ooc @@ -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")