Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar75248642.swift
Robert Widmann 779276a0c6 Bail On Checking Invalid Precedence Group
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
2021-03-11 12:40:23 -08:00

9 lines
198 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
precedencegroup MyOperatorPrecedence {
lowerThan: MultiplicationPrecedence
higherThan: AdditionPrec
associativity: left
assignment: false
}