Files
sdk/pkg/_fe_analyzer_shared/test/constants/data/basic.dart
T
Brian Wilkerson 14ff1f2d35 Generate a diagnostic for language overrides prior to 2.12
Change-Id: Ia10cf89443208ef133dd1ce8d68ee7c6b4129fbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276800
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2023-01-10 05:27:48 +00:00

33 lines
1.0 KiB
Dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// ignore: illegal_language_version_override
// @dart = 2.9
const null0 = /*cfe.Null()*/ null;
const bool0 = /*cfe.Bool(true)*/ true;
const bool1 = /*cfe.Bool(false)*/ false;
const string0 = /*cfe.String(foo)*/ 'foo';
const int0 = /*cfe.Int(0)*/ 0;
const double0 = /*cfe.Double(0.5)*/ 0.5;
const symbol0 = /*cfe.Symbol(foo)*/ #foo;
const symbol1 = const /*cfe.Symbol(foo)*/ Symbol('foo');
main() {
print(/*Null()*/ null0);
print(/*Bool(true)*/ bool0);
print(/*Bool(false)*/ bool1);
print(/*String(foo)*/ string0);
print(/*Int(0)*/ int0);
print(/*Double(0.5)*/ double0);
print(
/*cfe|analyzer.Symbol(foo)*/
/*dart2js.Instance(Symbol,{_name:String(foo))*/
symbol0);
print(
/*cfe|analyzer.Symbol(foo)*/
/*dart2js.Instance(Symbol,{_name:String(foo))*/
symbol1);
}