Jelajahi Sumber

actually use the newly created interface slots (#12042)

Aidan Lee 5 bulan lalu
induk
melakukan
98b43268a7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -305,7 +305,7 @@ let generate_source ctx =
             match has_class_flag class_def CInterface with
             | true ->
                let (slots, iface) = CppRetyper.tcpp_interface_from_tclass ctx acc.slots class_def in
-               if native_gen then (NativeInterface iface, slots, acc.ids) else (ManagedInterface iface, acc.slots, acc.ids)
+               if native_gen then (NativeInterface iface, slots, acc.ids) else (ManagedInterface iface, slots, acc.ids)
             | false ->
                let (slots, ids, cls) = CppRetyper.tcpp_class_from_tclass ctx acc.ids acc.slots class_def [] in
                if native_gen then (NativeClass cls, slots, ids) else (ManagedClass cls, slots, ids) in