Skip to content

Commit 2f213d5

Browse files
committed
Update a few tests for the "final class" change.
1 parent bc41ce2 commit 2f213d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Constraints/ErrorBridging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func throwErrorCode() throws {
7575
throw FictionalServerError.meltedDown // expected-error{{thrown error code type 'FictionalServerError.Code' does not conform to 'Error'; construct an 'FictionalServerError' instance}}{{29-29=(}}{{40-40=)}}
7676
}
7777

78-
class MyErrorClass { }
78+
class MyErrorClass { } // expected-warning{{non-final class 'MyErrorClass' cannot conform to `ConcurrentValue`; use `UnsafeConcurrentValue`}}
7979
extension MyErrorClass: Error { }
8080

8181
class MyClass { }

test/Constraints/casts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ extension Int: JSONLeaf { }
346346
extension Array: JSON where Element: JSON { }
347347

348348
protocol SR13035Error: Error {}
349-
class ChildError: SR13035Error {}
349+
class ChildError: SR13035Error {} // expected-warning{{non-final class 'ChildError' cannot conform to `ConcurrentValue`; use `UnsafeConcurrentValue`}}
350350

351351
protocol AnyC {
352352
func foo()

0 commit comments

Comments
 (0)