Skip to content

[SR-13033] Seg fault with property wrapper and underscored variables #55478

@mbrandonw

Description

@mbrandonw
Previous ID SR-13033
Radar None
Original Reporter @mbrandonw
Type Bug
Status Closed
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, TypeChecker
Assignee None
Priority Medium

md5: 9119ca03622a9241ce095ecc48332526

duplicates:

  • SR-12839 Underscore variable with same name as published var crashes compiler

Issue Description:

class Foo: ObservableObject {
  @Published var foo = 0
  var _foo = 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwaretype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions