mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:09:49 +00:00
8e0f4f4191
Change-Id: I8eef00c606e713e252db8834f730f1655cdd57a5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259509 Commit-Queue: Devon Carew <devoncarew@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
51 lines
867 B
Dart
51 lines
867 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
import 'dart:developer' as developer;
|
|
|
|
void main(List<String> args) {
|
|
String local1 = 'abcd';
|
|
int local2 = 2;
|
|
var longList = [1, 'hello', 3, 5, 7, 11, 13, 14, 15, 16, 17, 18, 19, 20];
|
|
var deepList = [
|
|
Bar(),
|
|
[
|
|
[
|
|
[
|
|
[
|
|
[7]
|
|
]
|
|
],
|
|
'end'
|
|
]
|
|
]
|
|
];
|
|
|
|
print('hello from main');
|
|
|
|
foo(1);
|
|
foo(local2);
|
|
foo(3);
|
|
foo(local1.length);
|
|
|
|
print(longList);
|
|
print(deepList);
|
|
|
|
developer.debugger();
|
|
|
|
print('exiting...');
|
|
}
|
|
|
|
void foo(int val) {
|
|
print('val: ${val}');
|
|
}
|
|
|
|
class Bar extends FooBar {
|
|
String field1 = 'my string';
|
|
}
|
|
|
|
class FooBar {
|
|
int field2 = 47;
|
|
}
|