Instantiating an unknown class should produce an error.
; Example to show bad class instantiation issue
(defpclass some_class []
:methods [(defpmethod do_x
[])
(defpmethod do_y
[a b])])
; Compile as `pamela -i bad_constructor.pamela -o bad_constructor -t "(main.main)" htn`
; error: Call from main.main to fake_class.do_x: method not defined
(defpclass main []
:fields {
:ab (fake_class :id "id1") ; This is a bug because there is no class fake_class. But pamela is not complaining.
}
:methods [(defpmethod main []
(sequence
(ab.do_x); pamela complains here
(ab.do_y 5 0.5)))])
Instantiating an unknown class should produce an error.