mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When the user spells an invalid precedence group, the Relation for that group will fail to resolve the decl. We need to handle this in checkPrecedenceGroup. Also add some asserts while I'm here. rdar://75248642
9 lines
198 B
Swift
9 lines
198 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
precedencegroup MyOperatorPrecedence {
|
|
lowerThan: MultiplicationPrecedence
|
|
higherThan: AdditionPrec
|
|
associativity: left
|
|
assignment: false
|
|
}
|