This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Description
open class JSONKey<ValueType> {
public init(_ key: String) {
}
public init(_ key: Int) {
}
public init(path indexes: Any...) {
}
}
Error (Fatal): SwiftRepro-JSONKey.swift:14:21: error: argument names for initializer 'init(key:)' do not match those of overridden initializer 'init'
public override init(key: Int)
^
_
SwiftRepro-JSONKey.swift:18:21: error: initializer does not override a designated initializer from its superclass
public override init(path: Array<Any>)
^
SwiftRepro.JSONKey:3:12: note: potential overridden initializer 'init(path:)' here
public init(path indexes: Any...)
^
SwiftRepro-JSONKey.swift:20:20: error: cannot convert value of type 'Array<Any>' to expected argument type 'Int'
super.init(path);
^~~~
SwiftRepro-JSONKey.swift:31:44: error: missing argument label 'types:' in call
SwiftRepro_xamVtableCache[TypeCacheKey(ObjectIdentifier(t0))]
^
types:
SwiftRepro-JSONKey.swift:37:51: error: missing argument label 'types:' in call
return SwiftRepro_xamVtableCache[TypeCacheKey(ObjectIdentifier(t0))];
^
types:
SwiftRepro-JSONKey.swift:41:12: error: argument labels '(_:)' do not match any available overloads
return xam_sub_JSONKey(key);
^ ~~~~~
SwiftRepro-JSONKey.swift:41:12: note: overloads for 'xam_sub_JSONKey<_>' exist with these partially matching parameter lists: (key: Int), (path: Array<Any>)
return xam_sub_JSONKey(key);
^
(Exception)