Discourage the use of LANGUAGE_VERSION directive.

Pinning the language version is rarely the right thing to do.
This changes makes it harder to do so by requiring an additional
directive with a name that indicates to developers that they are
likely doing something dangerous.
This commit is contained in:
Mads Ager
2023-05-15 13:56:39 +02:00
committed by Space Cloud
parent df8e9206d2
commit 6117f76a8c
4 changed files with 34 additions and 0 deletions
@@ -1,4 +1,5 @@
// API_VERSION: 2.0
// ALLOW_DANGEROUS_LANGUAGE_VERSION_TESTING
// LANGUAGE_VERSION: 2.1
package test
@@ -1,4 +1,5 @@
// API_VERSION: 2.0
// ALLOW_DANGEROUS_LANGUAGE_VERSION_TESTING
// LANGUAGE_VERSION: 2.0
package test