Skip to content

Commit 9743068

Browse files
committed
Moooooooore
1 parent a5ddfae commit 9743068

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cobalt-ast/src/types/agg.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ impl Type for SizedArray {
768768
fn _can_ref_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
769769
eprintln!("self: {self:?}, target: {target:?}");
770770
eprintln!("target kind: {}, ptr kind: {}", target.kind(), types::Pointer::KIND);
771+
let base = dbg!(target.downcast::<types::Pointer>());
772+
if base.is_some() {
773+
eprintln!("base kind: {}, our int kind: {}, real int kind: {}", base.kind(), self.elem().kind(), types::Int::KIND);
774+
}
771775
dbg!(target.is_and::<types::Pointer>(|r| r.base() == self.elem()))
772776
}
773777
fn _can_refmut_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {

0 commit comments

Comments
 (0)