Skip to content

Commit 4f885a3

Browse files
committed
Revert "Cleanup: Initializers come before member methods (swiftlang#488)"
This reverts commit 4fb6ca2.
1 parent 7cc7359 commit 4f885a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Samples/SwiftJavaExtractJNISampleApp/Sources/MySwiftLibrary/ConcreteProtocolAB.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ public class ConcreteProtocolAB: ProtocolA, ProtocolB {
1717
public let constantB: Int64
1818
public var mutable: Int64 = 0
1919

20-
public init(constantA: Int64, constantB: Int64) {
21-
self.constantA = constantA
22-
self.constantB = constantB
23-
}
24-
2520
public func name() -> String {
2621
return "ConcreteProtocolAB"
2722
}
2823

2924
public func makeClass() -> MySwiftClass {
3025
return MySwiftClass(x: 10, y: 50)
3126
}
27+
28+
public init(constantA: Int64, constantB: Int64) {
29+
self.constantA = constantA
30+
self.constantB = constantB
31+
}
3232
}

0 commit comments

Comments
 (0)