Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1442

Unknown property attribute 'class'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
    • Environment:

      Swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a
      Swift-DEVELOPMENT-SNAPSHOT-2016-04-25-a
      Swift-DEVELOPMENT-SNAPSHOT-2016-05-03-a

      Description

      Since Swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a, swift generates Objective-C generated header as

      @interface Awesome : NSObject
      @property (nonatomic, class, readonly, copy) NSString * _Nonnull property;
      - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
      @end
      

      from following swift code

      public class Awesome: NSObject {
          public class var property: String {
              return "Awesome.property"
          }
      }
      

      and generate error `Unknown property attribute 'class'`.

      See UnknownPropertyAttributeClass.zip that reproduces this issue.

        Attachments

          Activity

            People

            Assignee:
            norio_nomura Norio Nomura
            Reporter:
            norio_nomura Norio Nomura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: