Copy protocol's accessibility to the implementation caller class.

This commit is contained in:
Matyáš Kříž 2019-07-22 13:06:24 +02:00
parent 86432954a9
commit e405dbfe0a
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import Foundation
extension Templates { extension Templates {
static let typeErasure = """ static let typeErasure = """
class \(typeErasureClassName){{ container.genericParameters }}: {{ container.name }} { {{ container.accessibility }} class \(typeErasureClassName){{ container.genericParameters }}: {{ container.name }} {
private let reference: Any private let reference: Any
{% for property in container.properties %}private let _getter_storage$${{ property.name }}: () -> {{ property.type }}{% if not property.isReadOnly %} {% for property in container.properties %}private let _getter_storage$${{ property.name }}: () -> {{ property.type }}{% if not property.isReadOnly %}

View File

@ -83,3 +83,7 @@ class OnlyLabelClass: OnlyLabelProtocol {
func double(here notInHere: Bool) { func double(here notInHere: Bool) {
} }
} }
public protocol PublicoProtocolo {
associatedtype InternaloTypo
}