Skip to content

Commit 642bffb

Browse files
authored
Merge pull request #61512 from etcwilde/ewilde/unblock-windows-bot
Unblock mutability-annotations-typechecker failing test
2 parents 7335d60 + af126e5 commit 642bffb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Interop/Cxx/class/mutability-annotations-typechecker.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs %s -enable-experimental-cxx-interop -verify -verify-additional-file %S/Inputs/mutability-annotations.h
22

3+
// REQUIRES: rdar100876534
4+
35
import MutabilityAnnotations
46

57
let obj = HasConstMethodAnnotatedAsMutating(a: 42) // expected-note {{change 'let' to 'var' to make it mutable}}
@@ -15,4 +17,4 @@ let _ = objWMutableProperty.duplicateAnnotations()
1517

1618
let objWithoutMutableProperty = NoMutableProperty(a: 42) // expected-note {{change 'let' to 'var' to make it mutable}}
1719
let _ = objWithoutMutableProperty.isConst()
18-
let _ = objWithoutMutableProperty.nonConst() // expected-error {{cannot use mutating member on immutable value: 'objWithoutMutableProperty' is a 'let' constant}}
20+
let _ = objWithoutMutableProperty.nonConst() // expected-error {{cannot use mutating member on immutable value: 'objWithoutMutableProperty' is a 'let' constant}}

0 commit comments

Comments
 (0)