mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Diagnose @safe @unsafe when used together
Fixes rdar://147943857.
This commit is contained in:
@@ -268,3 +268,6 @@ struct UnsafeWrapTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@safe @unsafe
|
||||
struct ConfusedStruct { } // expected-error{{struct 'ConfusedStruct' cannot be both @safe and @unsafe}}
|
||||
|
||||
Reference in New Issue
Block a user