We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2514f70 + 3502102 commit 89103caCopy full SHA for 89103ca
test/expr/closure/trailing.swift
@@ -367,3 +367,28 @@ func testVariadic() {
367
let c2 = variadicAndNonOverload {}
368
_ = c2 as String // expected-error {{cannot convert value of type 'Bool' to type 'String'}}
369
}
370
+
371
+// rdar://18426302
372
373
+class TrailingBase {
374
+ init(fn: () -> ()) {}
375
+ init(x: Int, fn: () -> ()) {}
376
377
+ convenience init() {
378
+ self.init {}
379
+ }
380
381
+ convenience init(x: Int) {
382
+ self.init(x: x) {}
383
384
+}
385
386
+class TrailingDerived : TrailingBase {
387
+ init(foo: ()) {
388
+ super.init {}
389
390
391
+ init(x: Int, foo: ()) {
392
+ super.init(x: x) {}
393
394
0 commit comments