Skip to content

Kotlin explicit_casts: an import alias (import a.b.Bar as Baz) counts as a cast #9425

Backlog

Description

@squid-protocol

Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863).

Construct: a Kotlin import alias, import a.b.Bar as Baz. The explicit_casts branch \bas\??\s+[A-Z]\w* matches the as Baz of the import.

Snippet: import a.b.Bar as Baz
Expected: 0 explicit_casts hits (an import alias binds a name; it converts no value). Actual: 1 hit.

Rule: gitgalaxy/standards/language_standards/languages/kotlin.py, explicit_casts. The import rule counts the same line, so the line is double-counted into two families.

Locked in tests/decoys/test_decoy_kotlin.py as xfail(strict=True).

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions