mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SILGen] Also handle initializers without bodies
I was surprised to see this parses fine already, but SILGen still needs a new check.
This commit is contained in:
@@ -10,6 +10,15 @@
|
||||
|
||||
// CHECK-LABEL: public class Test
|
||||
public class Test {
|
||||
// CHECK: public init(){{$}}
|
||||
public init()
|
||||
|
||||
// CHECK: public func method(){{$}}
|
||||
public func method()
|
||||
|
||||
// CHECK: public subscript(_: Int) -> Void{{$}}
|
||||
public subscript(_: Int) -> Void { get set }
|
||||
|
||||
// NEGATIVE-NOT: deinit
|
||||
deinit
|
||||
} // CHECK: {{^}$}}
|
||||
|
||||
Reference in New Issue
Block a user