Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Cannot declare a public var in an extension with internal requirements #124

Description

@aspyre

I am getting a build issue in my generated output file. The issue is with this code:

extension IdentifiableProtocol where Self: ExpenseClaimsNavigationController {
    public var storyboardIdentifier: String? { return "ExpenseClaimsNavigationController" }
    static var storyboardIdentifier: String? { return "ExpenseClaimsNavigationController" }
}

Specifically the public var. The exact error is: Cannot declare a public var in an extension with internal requirements

This is the relevant class:

class RotatingNavigationController: UINavigationController {
	override var shouldAutorotate: Bool {
		return true
	}
	
	override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
		return [.portrait, .landscape]
	}
}

class LeaveAttachmentNavigationController: RotatingNavigationController {}
class ExpenseClaimsNavigationController: RotatingNavigationController {}

Strangely I don't have this issue in another project, the public keyword is not present. Am I doing something wrong or is this an issue with Natalie?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions