Skip to content

Commit 4d91f49

Browse files
committed
compiler_crashers: avoid using @c now that it's a real attribute
1 parent 7220c9a commit 4d91f49

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// {"kind":"typecheck","signature":"isParamListRepresentableInLanguage(swift::AbstractFunctionDecl const*, swift::ParameterList const*, swift::ObjCReason)","signatureAssert":"Assertion failed: (Ptr && \"Cannot dereference a null Type!\"), function operator->"}
22
// RUN: not --crash %target-swift-frontend -typecheck %s
33
// REQUIRES: objc_interop
4-
class a { @objc b(@c & d Int) @propertyWrapper enum c
4+
class a { @objc b(@e & d Int) @propertyWrapper enum e

validation-test/compiler_crashers_2/75874d2cf6f384c8.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
@propertyWrapper struct a<b{
44
wrappedValue: b
55
}
6-
@propertyWrapper struct c<b{
6+
@propertyWrapper struct e<b{
77
wrappedValue: b
88
}
99
{
10-
@c @a var value = if true
11-
let : c<a<Bool>> = _value
10+
@e @a var value = if true
11+
let : e<a<Bool>> = _value
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// {"kind":"typecheck","signature":"swift::TypeBase::getContextSubstitutions(swift::DeclContext const*, swift::GenericEnvironment*)","signatureAssert":"Assertion failed: (0 && \"Bad base type\"), function getContextSubstitutions"}
22
// RUN: not --crash %target-swift-frontend -typecheck %s
33
struct a< b {
4-
@propertyWrapper struct c {
4+
@propertyWrapper struct e {
55
var wrappedValue
66
projectedValue : a
77
init(projectedValue
88
a) {
9-
func d(@c b) d($e
9+
func d(@e b) d($e
1010
: f
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// {"kind":"typecheck","signature":"swift::TypeChecker::performTypoCorrection(swift::DeclContext*, swift::DeclRefKind, swift::Type, swift::optionset::OptionSet<swift::NameLookupFlags, unsigned int>, swift::TypoCorrectionResults&, swift::GenericSignature, unsigned int)","signatureAssert":"Assertion failed: (!baseTypeOrNull || !baseTypeOrNull->hasTypeParameter() || genericSig), function performTypoCorrection"}
22
// RUN: not --crash %target-swift-frontend -typecheck %s
33
enum a<b {
4-
@propertyWrapper class c {wrappedValue:b var projectedValue: a? {
5-
@c var wrappedValue: b wrappedValue.d
4+
@propertyWrapper class e {wrappedValue:b var projectedValue: a? {
5+
@e var wrappedValue: b wrappedValue.d

0 commit comments

Comments
 (0)