`Class::new` should also take the superclass name.

This commit is contained in:
David Wendt 2020-07-07 00:18:52 -04:00
parent d96596fd8a
commit 4a2a456666
1 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ impl<'gc> Class<'gc> {
/// using `load_traits`. /// using `load_traits`.
pub fn new( pub fn new(
name: QName<'gc>, name: QName<'gc>,
super_class: Option<Multiname<'gc>>,
instance_init: Method<'gc>, instance_init: Method<'gc>,
class_init: Method<'gc>, class_init: Method<'gc>,
mc: MutationContext<'gc, '_>, mc: MutationContext<'gc, '_>,
@ -129,7 +130,7 @@ impl<'gc> Class<'gc> {
mc, mc,
Self { Self {
name, name,
super_class: None, super_class,
attributes: CollectWrapper(EnumSet::empty()), attributes: CollectWrapper(EnumSet::empty()),
protected_namespace: None, protected_namespace: None,
interfaces: Vec::new(), interfaces: Vec::new(),