blob: 0c33cf6e08cd7ea665818335419b24343d15b949 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/late.dart:5:6: Error: Expected ';' after this.
// late int lateStaticField;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:5:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// late int lateStaticField;
// ^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:6:1: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// late final int finalLateStaticField;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:6:1: Error: Expected ';' after this.
// late final int finalLateStaticField;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:6:16: Error: The final variable 'finalLateStaticField' must be initialized.
// Try adding an initializer ('= <expression>') to the declaration.
// late final int finalLateStaticField;
// ^^^^^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:9:8: Error: Expected ';' after this.
// late int lateInstanceField;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:9:12: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// late int lateInstanceField;
// ^^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:10:3: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// late final int finalLateInstanceField = 0;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:10:3: Error: Expected ';' after this.
// late final int finalLateInstanceField = 0;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:12:15: Error: Expected ';' after this.
// static late int lateStaticField;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:12:15: Error: 'int' is already declared in this scope.
// static late int lateStaticField;
// ^^^
// pkg/front_end/testcases/nnbd/late.dart:9:8: Context: Previous declaration of 'int'.
// late int lateInstanceField;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:12:19: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// static late int lateStaticField;
// ^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:13:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// static late final int finalLateStaticField = 0;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:13:10: Error: Expected ';' after this.
// static late final int finalLateStaticField = 0;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:13:10: Error: 'late' is already declared in this scope.
// static late final int finalLateStaticField = 0;
// ^^^^
// pkg/front_end/testcases/nnbd/late.dart:10:3: Context: Previous declaration of 'late'.
// late final int finalLateInstanceField = 0;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:9:3: Warning: 'late' isn't a type.
// late int lateInstanceField;
// ^^^^
// pkg/front_end/testcases/nnbd/late.dart:9:3: Context: This isn't a type.
// late int lateInstanceField;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:10:14: Warning: 'int' isn't a type.
// late final int finalLateInstanceField = 0;
// ^^^
// pkg/front_end/testcases/nnbd/late.dart:10:14: Context: This isn't a type.
// late final int finalLateInstanceField = 0;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:12:10: Warning: 'late' isn't a type.
// static late int lateStaticField;
// ^^^^
// pkg/front_end/testcases/nnbd/late.dart:12:10: Context: This isn't a type.
// static late int lateStaticField;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:13:21: Warning: 'int' isn't a type.
// static late final int finalLateStaticField = 0;
// ^^^
// pkg/front_end/testcases/nnbd/late.dart:13:21: Context: This isn't a type.
// static late final int finalLateStaticField = 0;
// ^^^
//
// pkg/front_end/testcases/nnbd/late.dart:5:1: Warning: 'late' isn't a type.
// late int lateStaticField;
// ^^^^
// pkg/front_end/testcases/nnbd/late.dart:6:1: Context: This isn't a type.
// late final int finalLateStaticField;
// ^^^^
//
// pkg/front_end/testcases/nnbd/late.dart:6:12: Warning: 'int' isn't a type.
// late final int finalLateStaticField;
// ^^^
// pkg/front_end/testcases/nnbd/late.dart:5:6: Context: This isn't a type.
// late int lateStaticField;
// ^^^
//
import self as self;
import "dart:core" as core;
class Class extends core::Object {
field invalid-type int;
field dynamic lateInstanceField;
field dynamic late;
final field invalid-type finalLateInstanceField;
field dynamic lateStaticField;
final field invalid-type finalLateStaticField;
synthetic constructor •() self::Class*
;
method method() dynamic
;
}
static field invalid-type int;
static field dynamic lateStaticField;
static field dynamic late;
static final field invalid-type finalLateStaticField;
static method main() dynamic
;