mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
SelectorExpr; receivers; struct field check; if expression
This commit is contained in:
@@ -311,6 +311,9 @@ pub const (
|
||||
// Precedence returns a tokens precedence if defined, otherwise lowest_prec
|
||||
pub fn (tok Token) precedence() int {
|
||||
match tok.kind {
|
||||
.dot {
|
||||
return 8
|
||||
}
|
||||
// `++` | `--`
|
||||
.inc, .dec {
|
||||
return 7
|
||||
|
||||
Reference in New Issue
Block a user