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:
+1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user