Files
sdk/pkg/vm_service/java/example/sample_main.dart
T
Ben Konyi 368b3f0ab4 Reland "[ VM / Service ] Pulled in vm_service_drivers from its own repo."
Changes from original CL:
 * Removed service_undocumented.md
 * Removed generation of wrappers for undocumented RPCs
 * Cleaned up generation code which was used for generating wrappers for undocumented RPCs
 * Removed JARs from pkg/vm_service/java/third_party

This reverts commit 477a3c4748.

Change-Id: I8d36733c8b2602e4935c3f23698d3f7c97a20187
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110135
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2019-07-25 18:46:43 +00:00

47 lines
807 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.
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 = [
new Bar(),
[
[
[
[
[7]
]
],
"end"
]
]
];
print('hello from main');
foo(1);
foo(local2);
foo(3);
foo(local1.length);
print(longList);
print(deepList);
print('exiting...');
}
void foo(int val) {
print('val: ${val}');
}
class Bar extends FooBar {
String field1 = "my string";
}
class FooBar {
int field2 = 47;
}