mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
388 B
Swift
20 lines
388 B
Swift
// RUN: %swift %s -emit-ir -g -o - | FileCheck %s
|
|
// XFAIL: linux
|
|
class C {
|
|
let n : Int
|
|
required init (number i :Int) {
|
|
self.n = i
|
|
}
|
|
}
|
|
|
|
extension C {
|
|
class func Factory() -> Self {
|
|
// Currently we emit the static type C for r.
|
|
// CHECK: [ DW_TAG_auto_variable ] [r] [line [[@LINE+1]]]
|
|
let r = self(number: 0)
|
|
return r
|
|
}
|
|
}
|
|
|
|
let MoreDesignPatterns = C.Factory
|