Skip to content

intrinsics.type_core_type does not return the underyling type of a bit set #7479

Description

@slayyden

Context

Odin: dev-2026-08:8412dc37a
OS: macOS Tahoe 26.6.2 (build 25G83, kernel 25.6.0)
CPU: Apple M4 Pro
RAM: 24576 MiB
Backend: LLVM 22.1.8

Expected Behavior

Consider the following program:

package main
import "base:intrinsics"
import "core:fmt"

BitSet :: bit_set[0..<1; u32]

main :: proc() {
	fmt.println(typeid_of(BitSet))
	fmt.println(typeid_of(intrinsics.type_core_type(BitSet)))
}

This should print

bit_set[0..=0; u32]
u32

Current Behavior

It prints

bit_set[0..=0; u32]
bit_set[0..=0; u32]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions