1 // Checks if we emit `PatternError`s correctly.
2 // This is also a regression test for #27895 and #68394.
9 //~^ ERROR: runtime values cannot be referenced in patterns
11 //~^ ERROR: statics cannot be referenced in patterns
14 //~^ ERROR: runtime values cannot be referenced in patterns
16 //~^ ERROR: statics cannot be referenced in patterns