The language specification states that the content of a non-documentation comment must be ignored by the compiler: https://github.com/dart-lang/language/blob/0e320bd4a7339ce41db042db8e82c8298d4154dd/specification/dartLangSpec.tex#L22433-L22437 It looks to me like this is not consistent with the behavior of the "library version comment construct" e.g. `// @dart = 2.12`.