Skip to content

Commit

Permalink
Moooooooore
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-cornell committed Jan 18, 2024
1 parent a5ddfae commit 9743068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cobalt-ast/src/types/agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@ impl Type for SizedArray {
fn _can_ref_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
eprintln!("self: {self:?}, target: {target:?}");
eprintln!("target kind: {}, ptr kind: {}", target.kind(), types::Pointer::KIND);
let base = dbg!(target.downcast::<types::Pointer>());
if base.is_some() {
eprintln!("base kind: {}, our int kind: {}, real int kind: {}", base.kind(), self.elem().kind(), types::Int::KIND);
}
dbg!(target.is_and::<types::Pointer>(|r| r.base() == self.elem()))
}
fn _can_refmut_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
Expand Down

0 comments on commit 9743068

Please sign in to comment.