small checks

This commit is contained in:
Torsten Ruger
2015-08-06 18:27:25 +03:00
parent c0071c947d
commit 2c6ca7b4f2
4 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@ module Parfait
self.for_class = clazz
self.name = name
self.code = BinaryCode.new name
raise "Wrong type, expect List not #{arg_names.class}" unless arg_names.is_a? List
self.arg_names = arg_names
self.locals = List.new
self.tmps = List.new