`Class::new` should also take the superclass name.
This commit is contained in:
parent
d96596fd8a
commit
4a2a456666
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue