这是indexloc提供的服务,不要输入任何密码
Skip to content

Deprecated attribute hides require_results error #5480

@Stromberg90

Description

@Stromberg90

Context

  • Operating System & Odin Version:
Odin:    dev-2025-07-nightly:090cac6
OS:      Windows 11 Home Basic (version: 24H2), build 26100.4652
CPU:     13th Gen Intel(R) Core(TM) i7-13620H
RAM:     32471 MiB
Backend: LLVM 20.1.0

Expected Behavior

Both warning and error is printed.

Current Behavior

Only the deprecated warning is printed but compilation fails.

Failure Information (for bugs)

Warning: plus_one is deprecated: Please use something else

Steps to Reproduce

package main

@(deprecated = "Please use something else", require_results)
plus_one :: proc(a: int) -> int {
	return a + 1
}

main :: proc() {
	plus_one(3)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions